mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
⚡ added hashing to benchmark
This commit is contained in:
parent
c7e5b68144
commit
14618ac991
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ int main(int argc, char **argv)
|
||||||
bank.AddUser("jolly", 0, "root");
|
bank.AddUser("jolly", 0, "root");
|
||||||
bank.admin_account = "twix";
|
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<std::string>{}(data), "std::hash<std::string> ", 100000);
|
Op(std::hash<std::string>{}(data), "std::hash<std::string> ", 100000);
|
||||||
Op(xxHashStringGen{}(data), "xxHashStringGen ", 100000);
|
Op(xxHashStringGen{}(data), "xxHashStringGen ", 100000);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue