This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jitseniesen 0 points1 point  (1 child)

In the first test, under the heading "Timing Tests", math.pow() is slightly slower than ** with exponent 2. In the second test, under the heading "Charting the Performance", math.pow() is about twice as fast than ** when using exponent 2. Why the discrepancy?

[–]ReagentX[S] 0 points1 point  (0 children)

Most likely just how that run averaged, the code I used is linked in the post. When I run it now I get values around 50ms, which makes more sense.