From 31b3516db063655234e34a22de73611acb36d0dd Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 14 Jan 2023 16:08:54 -0500 Subject: [PATCH] updated benchmark results --- clang-x64/main.cpp.txt | 158 +++++++++++++++++++---------------------- 1 file changed, 75 insertions(+), 83 deletions(-) diff --git a/clang-x64/main.cpp.txt b/clang-x64/main.cpp.txt index 56bb186a..bba4ced8 100644 --- a/clang-x64/main.cpp.txt +++ b/clang-x64/main.cpp.txt @@ -1,176 +1,168 @@ -cset: --> last message, executed args into cpuset "/user", new pid is: 3738095 -enwik9: 141176630 words, 59692 ms +cset: --> last message, executed args into cpuset "/user", new pid is: 3774396 +enwik9: 141176630 words, 58924 ms boost::unordered_flat_map, single threaded: -Word count: 5287 ms (s=141176630, size=1418655) +Word count: 5274 ms (s=141176630, size=1418655) -Contains: 3997 ms (s=97891799, size=1418655) +Contains: 3994 ms (s=97891799, size=1418655) -Total: 9284 ms +Total: 9268 ms boost::unordered_flat_map, single threaded, shared_mutex: -Word count: 7562 ms (s=141176630, size=1418655) +Word count: 7456 ms (s=141176630, size=1418655) -Contains: 5468 ms (s=97891799, size=1418655) +Contains: 5470 ms (s=97891799, size=1418655) -Total: 13031 ms +Total: 12927 ms boost::unordered_flat_map, single threaded, rw_spinlock: -Word count: 5994 ms (s=141176630, size=1418655) +Word count: 5985 ms (s=141176630, size=1418655) -Contains: 4324 ms (s=97891799, size=1418655) +Contains: 4321 ms (s=97891799, size=1418655) -Total: 10319 ms +Total: 10307 ms concurrent_foa, single threaded: -Word count: 7597 ms (s=141176630, size=1418655) +Word count: 7574 ms (s=141176630, size=1418655) -Contains: 5395 ms (s=97891799, size=1418655) +Contains: 5398 ms (s=97891799, size=1418655) -Total: 12993 ms +Total: 12972 ms concurrent_foa, tbb::spin_rw_mutex, single threaded: -Word count: 7615 ms (s=141176630, size=1418655) +Word count: 7590 ms (s=141176630, size=1418655) -Contains: 5384 ms (s=97891799, size=1418655) +Contains: 5382 ms (s=97891799, size=1418655) -Total: 12999 ms +Total: 12973 ms concurrent_foa, std::shared_mutex, single threaded: -Word count: 8748 ms (s=141176630, size=1418655) +Word count: 8721 ms (s=141176630, size=1418655) -Contains: 6391 ms (s=97891799, size=1418655) +Contains: 6389 ms (s=97891799, size=1418655) -Total: 15139 ms +Total: 15110 ms tbb::concurrent_hash_map, single threaded: -Word count: 14979 ms (s=141176630, size=1418655) +Word count: 14990 ms (s=141176630, size=1418655) -Contains: 8481 ms (s=97891799, size=1418655) +Contains: 8437 ms (s=97891799, size=1418655) -Total: 23461 ms +Total: 23427 ms boost::unordered_flat_map, sharded_prehashed: -Word count: 4251 ms (s=141176630, size=1418655) +Word count: 4260 ms (s=141176630, size=1418655) -Contains: 2402 ms (s=97891799, size=1418655) +Contains: 2395 ms (s=97891799, size=1418655) -Total: 6653 ms +Total: 6655 ms boost::unordered_flat_map, sharded_prehashed: -Word count: 10326 ms (s=141176630, size=1418655) +Word count: 14427 ms (s=141176630, size=1418655) -Contains: 2110 ms (s=97891799, size=1418655) +Contains: 2167 ms (s=97891799, size=1418655) -Total: 12437 ms +Total: 16595 ms boost::unordered_flat_map, sharded_prehashed: -Word count: 5655 ms (s=141176630, size=1418655) +Word count: 5412 ms (s=141176630, size=1418655) -Contains: 1761 ms (s=97891799, size=1418655) +Contains: 1745 ms (s=97891799, size=1418655) -Total: 7417 ms +Total: 7157 ms boost::unordered_flat_map, sharded isolated, prehashed: -Word count: 3837 ms (s=141176630, size=1418655) +Word count: 3825 ms (s=141176630, size=1418655) -Contains: 3420 ms (s=97891799, size=1418655) +Contains: 3868 ms (s=97891799, size=1418655) -Total: 7258 ms +Total: 7693 ms concurrent foa: -Word count: 3133 ms (s=141176630, size=1418655) +Word count: 3285 ms (s=141176630, size=1418655) -Contains: 1580 ms (s=97891799, size=1418655) +Contains: 1589 ms (s=97891799, size=1418655) -Total: 4714 ms +Total: 4874 ms concurrent foa, tbb::spin_rw_mutex: -Word count: 3386 ms (s=141176630, size=1418655) +Word count: 3056 ms (s=141176630, size=1418655) -Contains: 1557 ms (s=97891799, size=1418655) +Contains: 1548 ms (s=97891799, size=1418655) -Total: 4944 ms +Total: 4604 ms concurrent foa, std::shared_mutex: -Word count: 3339 ms (s=141176630, size=1418655) +Word count: 3302 ms (s=141176630, size=1418655) -Contains: 1839 ms (s=97891799, size=1418655) +Contains: 1868 ms (s=97891799, size=1418655) -Total: 5179 ms - -libcuckoo::cuckoohash_map: - -Word count: 12729 ms (s=141176630, size=1418655) - -Contains: 14641 ms (s=97891799, size=1418655) - -Total: 27370 ms +Total: 5170 ms tbb::concurrent_hash_map: -Word count: 5546 ms (s=141176630, size=1418655) +Word count: 5565 ms (s=141176630, size=1418655) -Contains: 2031 ms (s=97891799, size=1418655) +Contains: 2026 ms (s=97891799, size=1418655) -Total: 7578 ms +Total: 7591 ms gtl::parallel_flat_hash_map: -Word count: 5480 ms (s=141176630, size=1418655) +Word count: 5498 ms (s=141176630, size=1418655) -Contains: 2769 ms (s=97891799, size=1418655) +Contains: 2775 ms (s=97891799, size=1418655) -Total: 8249 ms +Total: 8273 ms gtl::parallel_flat_hash_map: -Word count: 21321 ms (s=141176630, size=1418655) +Word count: 16745 ms (s=141176630, size=1418655) -Contains: 2723 ms (s=97891799, size=1418655) +Contains: 2676 ms (s=97891799, size=1418655) -Total: 24044 ms +Total: 19422 ms gtl::parallel_flat_hash_map: -Word count: 7635 ms (s=141176630, size=1418655) +Word count: 7632 ms (s=141176630, size=1418655) -Contains: 4518 ms (s=97891799, size=1418655) +Contains: 4246 ms (s=97891799, size=1418655) -Total: 12153 ms +Total: 11879 ms --- - boost::unordered_flat_map, single threaded: 9284 ms - boost::unordered_flat_map, single threaded, shared_mutex: 13031 ms - boost::unordered_flat_map, single threaded, rw_spinlock: 10319 ms - concurrent_foa, single threaded: 12993 ms - concurrent_foa, tbb::spin_rw_mutex, single threaded: 12999 ms - concurrent_foa, std::shared_mutex, single threaded: 15139 ms - tbb::concurrent_hash_map, single threaded: 23461 ms - boost::unordered_flat_map, sharded_prehashed: 6653 ms -boost::unordered_flat_map, sharded_prehashed: 12437 ms - boost::unordered_flat_map, sharded_prehashed: 7417 ms - boost::unordered_flat_map, sharded isolated, prehashed: 7258 ms - concurrent foa: 4714 ms - concurrent foa, tbb::spin_rw_mutex: 4944 ms - concurrent foa, std::shared_mutex: 5179 ms - libcuckoo::cuckoohash_map: 27370 ms - tbb::concurrent_hash_map: 7578 ms - gtl::parallel_flat_hash_map: 8249 ms - gtl::parallel_flat_hash_map: 24044 ms - gtl::parallel_flat_hash_map: 12153 ms +Number of threads: 16 + boost::unordered_flat_map, single threaded: 9268 ms + boost::unordered_flat_map, single threaded, shared_mutex: 12927 ms + boost::unordered_flat_map, single threaded, rw_spinlock: 10307 ms + concurrent_foa, single threaded: 12972 ms + concurrent_foa, tbb::spin_rw_mutex, single threaded: 12973 ms + concurrent_foa, std::shared_mutex, single threaded: 15110 ms + tbb::concurrent_hash_map, single threaded: 23427 ms + boost::unordered_flat_map, sharded_prehashed: 6655 ms +boost::unordered_flat_map, sharded_prehashed: 16595 ms + boost::unordered_flat_map, sharded_prehashed: 7157 ms + boost::unordered_flat_map, sharded isolated, prehashed: 7693 ms + concurrent foa: 4874 ms + concurrent foa, tbb::spin_rw_mutex: 4604 ms + concurrent foa, std::shared_mutex: 5170 ms + tbb::concurrent_hash_map: 7591 ms + gtl::parallel_flat_hash_map: 8273 ms + gtl::parallel_flat_hash_map: 19422 ms + gtl::parallel_flat_hash_map: 11879 ms