From 14618ac991cec602c33254d0bf9c49e8409c4b16 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 6 Jul 2021 15:16:43 -0700 Subject: [PATCH] :zap: added hashing to benchmark --- benchmarking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarking.cpp b/benchmarking.cpp index 35e8922..adf5051 100644 --- a/benchmarking.cpp +++ b/benchmarking.cpp @@ -68,7 +68,7 @@ int main(int argc, char **argv) bank.AddUser("jolly", 0, "root"); bank.admin_account = "twix"; - std::string data("twix is pog champ :flushed:"); + const std::string data("this string is quite long which is relevant when testing the speed of a hasing function"); Op(std::hash{}(data), "std::hash ", 100000); Op(xxHashStringGen{}(data), "xxHashStringGen ", 100000);