summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/misc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-27 13:23:10 +0200
committerTyge Løvset <[email protected]>2022-04-27 13:23:10 +0200
commit8178a02c4048cef03952a075f87da91b6ec2ee96 (patch)
treebc5b9a2fc2c64ae5a1b3eb665e828e4246707247 /benchmarks/misc
parente6738b3da5cbd7703cf3fbd905b3fdac19d0ae24 (diff)
downloadSTC-modified-8178a02c4048cef03952a075f87da91b6ec2ee96.tar.gz
STC-modified-8178a02c4048cef03952a075f87da91b6ec2ee96.zip
Finally FIXED cloning/to/from scheme to work properly. When using i_key_bind/i_val_bind, a .._clone() function *must* always be defined.
Functions .._from and .._toraw is only required when i_keyraw/i_valraw type is defined.
Diffstat (limited to 'benchmarks/misc')
-rw-r--r--benchmarks/misc/sso_bench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/misc/sso_bench.cpp b/benchmarks/misc/sso_bench.cpp
index c123fff6..e8ecd9ba 100644
--- a/benchmarks/misc/sso_bench.cpp
+++ b/benchmarks/misc/sso_bench.cpp
@@ -45,14 +45,14 @@ int benchmark(L& con, const int length, R addRandomString) {
if (length == 0)
for (int i = 0; i < BENCHMARK_SIZE; i++)
- addRandomString(con, (crandom() & 31) + 1);
+ addRandomString(con, (crandom() & 63) + 1);
else
for (int i = 0; i < BENCHMARK_SIZE; i++)
addRandomString(con, length);
time_point t2 = std::chrono::high_resolution_clock::now();
const auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1).count();
- std::cerr << (length ? length : 16) << "\t" << duration;
+ std::cerr << (length ? length : 32) << "\t" << duration;
return (int)duration;
}