benchmark.wrap: adding a wrap benchmark.

db4
John Benediktsson 2012-08-03 09:37:01 -07:00
parent b2a10982f7
commit a4a62524b3
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: kernel math math.parser sequences wrap wrap.strings ;
IN: benchmark.wrap
: wrap-benchmark ( -- )
1,000 iota [ number>string ] map " " join
100 [ dup 80 wrap-string drop ] times drop ;
MAIN: wrap-benchmark