Hi all! Below are the benchmarks along with examples of some useful benchmarking words I wrote: Note: the benchmark-average word outputs the mean and standard deviation - naturally they're printed in reverse order:
( scratchpad ) USE: bag-of-tricks ( scratchpad ) QUALIFIED-WITH: random r ( scratchpad ) 100000 [ 2 r:random-bits drop ] times-benchmark time. Running time: 3.290678853 seconds ( scratchpad ) 100000 [ 2 random-bits drop ] times-benchmark time. Running time: 0.642507924 seconds ( scratchpad ) 100000 [ 20 r:random-bits drop ] times-benchmark time. Running time: 5.727949568 seconds ( scratchpad ) 100000 [ 20 random-bits drop ] times-benchmark time. Running time: 0.639723335 seconds ( scratchpad ) 5 [ 100000 [ 2 r:random-bits drop ] times ] benchmark-average time. time. Running time: 0.03145102519976949 seconds Running time: 3.3113945934 seconds ( scratchpad ) 5 [ 100000 [ 2 random-bits drop ] times ] benchmark-average time. time. Running time: 0.006219348196139648 seconds Running time: 0.624291206 seconds ( scratchpad ) 5 [ 100000 [ 20 r:random-bits drop ] times ] benchmark-average time. time. Running time: 0.06443141485014038 seconds Running time: 5.743279292 seconds ( scratchpad ) 5 [ 100000 [ 20 random-bits drop ] times ] benchmark-average time. time. Running time: 0.00475085743058121 seconds Running time: 0.6351570998 seconds This is my first post so be gentle =). Also, I go by the alias pltonik on irc. Factor rocks! Hope my code is of use to someone. PS: I realise that r:random-bits returns a specified length integer while mine returns a standard sized one - but I doubt there are many occasions when you need a non standard length integer, so for the other 99% of times it is a massive speedup.
bag-of-tricks.factor
Description: Binary data
------------------------------------------------------------------------------
_______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
