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