11-13-2013 03:51 AM
Hello all,
I was trying to make my own "benchmarking program"
too see if my code can become faster.
I already a vi for it, see attachment.
The strange part is that it gives 0.0000000000 for the following program:
Is there a problem in my code?
Or is my pc too fast
Koen
Solved! Go to Solution.
11-13-2013 03:56 AM
Your attachment and VI doesn't match
when I downloaded the code then this is the image
11-13-2013 04:02 AM
The vi is the benchmarking vi that i made.
the picture that i delivered was just a way to test if it worked, the tested vi has no purpose.
11-13-2013 04:04 AM
where you receiving 0.000000?
11-13-2013 04:05 AM
which is following vi
11-13-2013 04:06 AM - edited 11-13-2013 04:08 AM
Yes, I was receiving that over the flat sequence. As elapsed time.
Here is the test vi
11-13-2013 04:11 AM
You have to temporize your loop. Otherwise you are collapsing your computer processor.
11-13-2013 04:15 AM
You have to temporize your loop. Otherwise you are collapsing your computer processor.
Thats actually what I'm trying to do. To see how fast it can run.
Though I don't like the ms counter i made my own counter (benchmark.vi).
The problem is when I wire it in a flat sequence it will give 0.000000 when they are substracted
11-13-2013 04:21 AM
I think that it is too fast, just try it:
11-13-2013 04:28 AM
Yes you were right. The loop was just faster then 0.0000000000s
increased the iterations to 8000000, and it gave an answer:0.0312504768371582031s