Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/test-cmap: Balance benchmarks between cmap and hmap.
The test cases have been carefully crafted so that we do the same amount of "overhead" operations in each case. Earlier, with no mutations, the number of random number generations was different for hmap and cmap test cases. hmap test was also missing an ignore() call. Now the numbers look like this: $ tests/ovstest test-cmap benchmark 2000000 8 0 Benchmarking with n=2000000, 8 threads, 0.00% mutations: cmap insert: 597 ms cmap iterate: 65 ms cmap search: 299 ms cmap destroy: 251 ms hmap insert: 243 ms hmap iterate: 201 ms hmap search: 299 ms hmap destroy: 202 ms So it seems search on cmap can be as fast as on hmap in the single-threaded case. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
- Loading branch information