benchmark: remove commented words. Use standard indentation.
parent
b2e0c3d636
commit
c4ba816fc9
|
@ -5,22 +5,11 @@ arrays assocs io.styles io help.markup prettyprint sequences
|
||||||
continuations debugger ;
|
continuations debugger ;
|
||||||
IN: benchmark
|
IN: benchmark
|
||||||
|
|
||||||
! : run-benchmark ( vocab -- result )
|
|
||||||
! "=== Benchmark " write dup print flush
|
|
||||||
! dup require
|
|
||||||
! [ [ run ] benchmark ] [ error. drop f f ] recover 2array
|
|
||||||
! dup . ;
|
|
||||||
|
|
||||||
: run-benchmark ( vocab -- result )
|
: run-benchmark ( vocab -- result )
|
||||||
"=== Benchmark " write dup vocab-name print flush
|
"=== Benchmark " write dup vocab-name print flush
|
||||||
[ dup require [ run ] benchmark ] [ error. drop f f ] recover 2array
|
[ dup require [ run ] benchmark ] [ error. drop f f ] recover 2array
|
||||||
dup . ;
|
dup . ;
|
||||||
|
|
||||||
! : run-benchmarks ( -- assoc )
|
|
||||||
! "benchmark" load-children
|
|
||||||
! "benchmark" dup child-vocabs remove
|
|
||||||
! [ dup run-benchmark ] { } map>assoc ;
|
|
||||||
|
|
||||||
: run-benchmarks ( -- assoc )
|
: run-benchmarks ( -- assoc )
|
||||||
"benchmark"
|
"benchmark"
|
||||||
all-child-vocabs values concat [ dup run-benchmark ] { } map>assoc ;
|
all-child-vocabs values concat [ dup run-benchmark ] { } map>assoc ;
|
||||||
|
|
Loading…
Reference in New Issue