commit c7d65fa3685a5f48cfedaa7a1adf758e1dc6d219 (tree)
parent 90a877f462fce8bee69ad366aac66805a7c00571
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 30 May 2023 18:26:39 -0700
std.hash: add xxhash to benchmark and fix its API
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git 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",
},