authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-30 18:26:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:47:57-07:00
logc7d65fa3685a5f48cfedaa7a1adf758e1dc6d219
tree6fbdaaf0ed4d5704e4d02eb5c587bfaf37da5166
parent90a877f462fce8bee69ad366aac66805a7c00571

std.hash: add xxhash to benchmark and fix its API


1 files changed, 10 insertions(+), 0 deletions(-)

lib/std/hash/benchmark.zig+10
......@@ -38,6 +38,16 @@ const hashes = [_]Hash{
3838 .name = "wyhash",
3939 .init_u64 = 0,
4040 },
41 Hash{
42 .ty = hash.XxHash64,
43 .name = "xxhash64",
44 .init_u64 = 0,
45 },
46 Hash{
47 .ty = hash.XxHash32,
48 .name = "xxhash32",
49 .init_u64 = 0,
50 },
4151 Hash{
4252 .ty = hash.Fnv1a_64,
4353 .name = "fnv1a",