From Thursday, May 23rd (05:00 PM CDT) through Friday, April 24th (1:30 AM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

benchmark

Solved!
Go to solution

You need to make sure the compiler doesn't optimise your code away thus invalidating your benchmark.

 

Write to a FP indicator after the benchmarking (i.e. USE the result somewhere) so that the compiler can't simply delete your loop because the result is not being used.

 

The compiler being this smart makes benchmarking sometimes really difficult and many have stumbled on problems with correct-looking code which simply does not benchmark anything useful.

 

HERE.

 

Shane.

0 Kudos
Message 11 of 11
(152 Views)