1 USING: classes classes.tuple kernel sequences vocabs math ;
\r
2 IN: benchmark.dispatch5
\r
67 : my-classes ( -- seq )
\r
68 "benchmark.dispatch5" words [ tuple-class? ] filter ;
\r
70 : a-bunch-of-objects ( -- seq )
\r
71 my-classes [ new ] map ;
\r
73 : dispatch-benchmark ( -- )
\r
74 1000000 a-bunch-of-objects
\r
75 [ f [ g? or ] reduce drop ] curry times ;
\r
77 MAIN: dispatch-benchmark
\r