]> gitweb.factorcode.org Git - factor.git/blob - extra/benchmark/empty-loop-2/empty-loop-2.factor
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota...
[factor.git] / extra / benchmark / empty-loop-2 / empty-loop-2.factor
1 USING: math math.private kernel sequences ;
2 IN: benchmark.empty-loop-2
3
4 : empty-loop-2 ( n -- )
5     <iota> [ drop ] each ;
6
7 : empty-loop-2-benchmark ( -- )
8     50000000 empty-loop-2 ;
9
10 MAIN: empty-loop-2-benchmark