]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/benchmark/dispatch2/dispatch2.factor
Fixing everything for mandatory stack effects
[factor.git] / extra / benchmark / dispatch2 / dispatch2.factor
index 53e9c9a14c6e1e3f5e7ebb2d500d6ebf3e8833e8..029fb61902b0fff084e3788209e967f8732c808e 100644 (file)
@@ -1,7 +1,7 @@
 USING: namespaces math sequences splitting kernel columns ;
 IN: benchmark.dispatch2
 
-: sequences
+: sequences ( -- seq )
     [
         1 ,
         10 >bignum ,
@@ -21,9 +21,9 @@ IN: benchmark.dispatch2
         1 [ + ] curry ,
     ] { } make ;
 
-: don't-flush-me drop ;
+: don't-flush-me ( obj -- ) drop ;
 
-: dispatch-test
+: dispatch-test ( -- )
     1000000 sequences
     [ [ 0 swap nth don't-flush-me ] each ] curry times ;