aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/hash/hash_func_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/hash/hash_func_test.go b/internal/hash/hash_func_test.go
index 5ce39b4..15919c3 100644
--- a/internal/hash/hash_func_test.go
+++ b/internal/hash/hash_func_test.go
@@ -26,3 +26,10 @@ func TestDefaultHash(t *testing.T) {
})
}
}
+
+func BenchmarkDefaultHash(b *testing.B) {
+ key := []byte("THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG")
+ for i := 0; i < b.N; i++ {
+ defaultHash(key)
+ }
+}