diff options
| author | Tyge Løvset <[email protected]> | 2021-02-05 23:03:50 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-05 23:03:50 +0100 |
| commit | 1ea2043900095c3548d30ba4520fda6f854263c1 (patch) | |
| tree | efdcaf9466632c7bbac180111285781603846815 /benchmarks/cmap_benchmark2.cpp | |
| parent | c0f80d42f0b8070420fd0f3b81d76007d97cee12 (diff) | |
| download | STC-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.cpp | 2 |
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)
|
