Print benchmark runtimes in seconds
parent
1fa819191d
commit
9490207615
|
@ -2,7 +2,7 @@
|
|||
! See http://factorcode.org/license.txt for BSD license.
|
||||
USING: kernel vocabs vocabs.loader tools.time tools.vocabs
|
||||
arrays assocs io.styles io help.markup prettyprint sequences
|
||||
continuations debugger ;
|
||||
continuations debugger math ;
|
||||
IN: benchmark
|
||||
|
||||
: run-benchmark ( vocab -- result )
|
||||
|
@ -17,12 +17,12 @@ IN: benchmark
|
|||
standard-table-style [
|
||||
[
|
||||
[ "Benchmark" write ] with-cell
|
||||
[ "Time (ms)" write ] with-cell
|
||||
[ "Time (seconds)" write ] with-cell
|
||||
] with-row
|
||||
[
|
||||
[
|
||||
[ [ 1array $vocab-link ] with-cell ]
|
||||
[ pprint-cell ] bi*
|
||||
[ 1000000 /f pprint-cell ] bi*
|
||||
] with-row
|
||||
] assoc-each
|
||||
] tabular-output ;
|
||||
|
|
Loading…
Reference in New Issue