benchmark.bloom-filters: adding a benchmark for bloom filters.

John Benediktsson 2013-04-03 15:10:52 -07:00
parent 43c3e82381
commit a8071b0cbf
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
USING: bloom-filters kernel math ;
IN: benchmark.bloom-filters
: bloom-filters-benchmark ( -- )
0.01 2000 <bloom-filter> 100,000 [
100 over bloom-filter-insert
100 over bloom-filter-member? drop
] times drop ;
MAIN: bloom-filters-benchmark