1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash BITS="16" cc -I../src -O3 -Wall -m64 bloom_perf.c -o bloom_perf.none for bits in $BITS do cc -I../src -DHASH_BLOOM=$bits -O3 -Wall -m64 bloom_perf.c -o bloom_perf.$bits done for bits in none $BITS do echo echo "using $bits-bit filter:" ./bloom_perf.$bits 10 done