mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
⚡ refined a bit
This commit is contained in:
parent
39fb5e96a1
commit
a46adc28f9
1 changed files with 3 additions and 3 deletions
|
|
@ -69,8 +69,8 @@ int main(int argc, char **argv)
|
||||||
bank.admin_account = "twix";
|
bank.admin_account = "twix";
|
||||||
|
|
||||||
const std::string data("this string is quite long which is relevant when testing the speed of a hasing function");
|
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> ", 1000000);
|
Op(std::hash<std::string>{}(data), "hash<string>: ", 1000000);
|
||||||
Op(xxHashStringGen{}(data), "xxHashStringGen ", 1000000);
|
Op(xxHashStringGen{}(data), "xxHashStringGen: ", 1000000);
|
||||||
|
|
||||||
Op_a(bank.AddUser("", 0, ""), "add user: ", 1000000, bank.DelUser(""));
|
Op_a(bank.AddUser("", 0, ""), "add user: ", 1000000, bank.DelUser(""));
|
||||||
Op(bank.ImpactBal("twix", 1), "impact bal: ", 1000000);
|
Op(bank.ImpactBal("twix", 1), "impact bal: ", 1000000);
|
||||||
|
|
@ -90,10 +90,10 @@ int main(int argc, char **argv)
|
||||||
#if MAX_LOG_SIZE > 0
|
#if MAX_LOG_SIZE > 0
|
||||||
Op(bank.GetLogs("twix"), "get logs: ", 1000000);
|
Op(bank.GetLogs("twix"), "get logs: ", 1000000);
|
||||||
#endif
|
#endif
|
||||||
Op(bank.Save(), "saving: ", 1);
|
|
||||||
#if CONSERVATIVE_DISK_SAVE
|
#if CONSERVATIVE_DISK_SAVE
|
||||||
Op(bank.GetChangeState(), "change flag: ", 1000000);
|
Op(bank.GetChangeState(), "change flag: ", 1000000);
|
||||||
#endif
|
#endif
|
||||||
|
Op(bank.Save(), "saving: ", 1);
|
||||||
|
|
||||||
//GetBal scalining test
|
//GetBal scalining test
|
||||||
// std::default_random_engine generator;
|
// std::default_random_engine generator;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue