benchmark.busy-loop: adding a busy-loop "control" benchmark.
parent
3447136e2a
commit
53b77247f0
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
USING: kernel math ;
|
||||||
|
|
||||||
|
IN: benchmark.busy-loop
|
||||||
|
|
||||||
|
: busy-loop-benchmark ( -- )
|
||||||
|
1,000,000,000 [ 1 - dup 0 > ] loop drop ;
|
||||||
|
|
||||||
|
MAIN: busy-loop-benchmark
|
Loading…
Reference in New Issue