aboutsummaryrefslogtreecommitdiff
path: root/lib/std/hash/benchmark.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-30 18:26:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:57 -0700
commitc7d65fa3685a5f48cfedaa7a1adf758e1dc6d219 (patch)
tree6fbdaaf0ed4d5704e4d02eb5c587bfaf37da5166 /lib/std/hash/benchmark.zig
parent90a877f462fce8bee69ad366aac66805a7c00571 (diff)
downloadzig-c7d65fa3685a5f48cfedaa7a1adf758e1dc6d219.tar.gz
zig-c7d65fa3685a5f48cfedaa7a1adf758e1dc6d219.zip
std.hash: add xxhash to benchmark and fix its API
Diffstat (limited to 'lib/std/hash/benchmark.zig')
-rw-r--r--lib/std/hash/benchmark.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/std/hash/benchmark.zig b/lib/std/hash/benchmark.zig
index cf2f18d22f..a3fc6c2574 100644
--- a/lib/std/hash/benchmark.zig
+++ b/lib/std/hash/benchmark.zig
@@ -39,6 +39,16 @@ const hashes = [_]Hash{
.init_u64 = 0,
},
Hash{
+ .ty = hash.XxHash64,
+ .name = "xxhash64",
+ .init_u64 = 0,
+ },
+ Hash{
+ .ty = hash.XxHash32,
+ .name = "xxhash32",
+ .init_u64 = 0,
+ },
+ Hash{
.ty = hash.Fnv1a_64,
.name = "fnv1a",
},