aboutsummaryrefslogtreecommitdiff
path: root/tests/bloom_perf.sh
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-12-01 13:33:34 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-12-01 13:33:34 +0100
commitc8bf38e5fb717d40635a2a89b22ed71b0de4266b (patch)
tree63751b2f5497c6f99e1c6a78f23a8e6e5c49833f /tests/bloom_perf.sh
Squashed 'dependencies/uthash/' content from commit 8e67ced
git-subtree-dir: dependencies/uthash git-subtree-split: 8e67ced1d1c5bd8141c542a22630e6de78aa6b90
Diffstat (limited to 'tests/bloom_perf.sh')
-rwxr-xr-xtests/bloom_perf.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bloom_perf.sh b/tests/bloom_perf.sh
new file mode 100755
index 000000000..0a04f230a
--- /dev/null
+++ b/tests/bloom_perf.sh
@@ -0,0 +1,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
+