benchmark.parse-fixnum: adding a fixnum parse benchmark.

John Benediktsson 2013-03-28 06:24:15 -07:00
parent c8ce3b5332
commit 4b64f4c209
1 changed files with 9 additions and 0 deletions

View File

@ -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