benchmark.parse-fixnum: adding a fixnum parse benchmark.
parent
677f87ae0d
commit
6a4a7796ed
|
@ -0,0 +1,9 @@
|
|||
USING: kernel math.parser sequences ;
|
||||
IN: benchmark.parse-fixnum
|
||||
|
||||
: parse-fixnum-benchmark ( -- )
|
||||
2,000,000 iota [
|
||||
[ number>string string>number ] [ assert= ] bi
|
||||
] each ;
|
||||
|
||||
MAIN: parse-fixnum-benchmark
|
Loading…
Reference in New Issue