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

This commit is contained in:
Andrew Kelley 2023-05-30 18:26:39 -07:00
parent 90a877f462
commit c7d65fa368

View File

@ -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",