Commit c7d65fa368

Andrew Kelley <andrew@ziglang.org>
2023-05-31 03:26:39
std.hash: add xxhash to benchmark and fix its API
1 parent 90a877f
Changed files (1)
lib
std
lib/std/hash/benchmark.zig
@@ -38,6 +38,16 @@ const hashes = [_]Hash{
         .name = "wyhash",
         .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",