]> gitweb.factorcode.org Git - factor.git/commitdiff
Print messages as benchmarks are run
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 10 Dec 2008 07:12:08 +0000 (01:12 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 10 Dec 2008 07:12:08 +0000 (01:12 -0600)
extra/benchmark/benchmark.factor

index a1e892229ad8a0f84e0b4a82fcb58bf4cf3c2738..9afd2118766d9bebf382683e8797e4d07feb945a 100755 (executable)
@@ -6,8 +6,10 @@ continuations debugger math ;
 IN: benchmark
 
 : run-benchmark ( vocab -- result )
-    [ [ require ] [ [ run ] benchmark ] bi ] curry
-    [ error. f ] recover ;
+    [ "=== " write vocab-name print flush ] [
+        [ [ require ] [ [ run ] benchmark ] bi ] curry
+        [ error. f ] recover
+    ] bi ;
 
 : run-benchmarks ( -- assoc )
     "benchmark" all-child-vocabs-seq