On Wed, Sep 24, 2014 at 11:31:43AM -0700, Jarno Rajahalme wrote: > 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 <jrajaha...@nicira.com>
Good catch. s/bencmarks/benchmarks/ in the subject. Acked-by: Ben Pfaff <b...@nicira.com> _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev