Rate counter: Difference between revisions
Content added Content deleted
(→{{header|Raku}}: raku got faster in ten years, so bump difficulty) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 2,407: | Line 2,407: | ||
Note that, in an attempt to obtain more meaningful times, I've called the function 1 million times compared to just one in the Kotlin example which uses a more accurate timer. |
Note that, in an attempt to obtain more meaningful times, I've called the function 1 million times compared to just one in the Kotlin example which uses a more accurate timer. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var cube = Fn.new { |n| n * n * n } |
||
var benchmark = Fn.new { |n, func, arg, calls| |
var benchmark = Fn.new { |n, func, arg, calls| |