BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Show by example...


@BowenM wrote:

This discussion got me curious so I benchmarked it (5m times)

 

NI method: 0.0519 sec

removed duplicate calculations: 0.0146 sec

complex math: 0.0104 sec

NI method with formula node: 0.449 sec

 

... I didn't realize formula node was that slow.


Please attach your benchmark code.  Include version information as well.  I don't doubt your statement but , providing us the ability to duplicate the experiment is a large piece of the scientific method.  


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 14
(6,173 Views)


@X. wrote:

This is no news: Do Formula Nodes, Expression Nodes, or Traditional Numeric Nodes Provide the Best Run-Time Performan...

I assumed years ago primitives would work best. And why not? There has to be some fumbling about with the data just to get it to a place where primitives can perform the functions anyway.

PaulG.

LabVIEW versions 5.0 - 2020

“All programmers are optimists”
― Frederick P. Brooks Jr.
0 Kudos
Message 13 of 14
(6,136 Views)

@X. wrote:

This is no news: Do Formula Nodes, Expression Nodes, or Traditional Numeric Nodes Provide the Best Run-Time Performan...


I think in the very (very!) distand past I have seen cases where the formula node was equivalent or slightly faster than pure LabVIEW primitives, but this no longer seems to be the case. Maybe the compiler has advanced since?

 

If you want to go even slower, try the Mathscript node. 😄

Message 14 of 14
(6,122 Views)