benchmark.csv: adding a benchmark for csv.

db4
John Benediktsson 2012-07-13 22:20:34 -07:00
parent 2902cb111b
commit af4d839a23
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
! Copyright (C) 2012 John Benediktsson
! See http://factorcode.org/license.txt for BSD license.
USING: arrays csv kernel math.parser sequences ;
IN: benchmark.csv
: csv-benchmark ( -- )
1,000 200 iota [ number>string ] map <array>
[ csv>string string>csv ] keep assert= ;
MAIN: csv-benchmark