summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark2.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-02-05 23:03:50 +0100
committerTyge Løvset <[email protected]>2021-02-05 23:03:50 +0100
commit1ea2043900095c3548d30ba4520fda6f854263c1 (patch)
treeefdcaf9466632c7bbac180111285781603846815 /benchmarks/cmap_benchmark2.cpp
parentc0f80d42f0b8070420fd0f3b81d76007d97cee12 (diff)
downloadSTC-modified-1ea2043900095c3548d30ba4520fda6f854263c1.tar.gz
STC-modified-1ea2043900095c3548d30ba4520fda6f854263c1.zip
Rewrote to use c_container_of() instead of size_t offset.
Diffstat (limited to 'benchmarks/cmap_benchmark2.cpp')
-rw-r--r--benchmarks/cmap_benchmark2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/cmap_benchmark2.cpp b/benchmarks/cmap_benchmark2.cpp
index be8a47a6..4d6db980 100644
--- a/benchmarks/cmap_benchmark2.cpp
+++ b/benchmarks/cmap_benchmark2.cpp
@@ -228,7 +228,7 @@ static void ins_and_access_s(picobench::state& s)
map.erase(it);
}
}
- s.set_result(result);
+ s.set_result(result + map.size());
}
static void ins_and_access_cmap_s(picobench::state& s)