Files
boost_unordered_benchmarks/vs-x86/main.cpp.txt
2023-01-21 05:09:04 -05:00

168 lines
3.9 KiB
Plaintext

enwik8: 14480868 words, 8495 ms
boost::unordered_flat_map, single threaded:
Word count: 895 ms (s=14480868, size=354032)
Contains: 532 ms (s=7961072, size=354032)
Total: 1427 ms
boost::unordered_flat_map, single threaded, shared_mutex:
Word count: 1177 ms (s=14480868, size=354032)
Contains: 783 ms (s=7961072, size=354032)
Total: 1961 ms
boost::unordered_flat_map, single threaded, rw_spinlock:
Word count: 977 ms (s=14480868, size=354032)
Contains: 655 ms (s=7961072, size=354032)
Total: 1633 ms
concurrent_foa, single threaded:
Word count: 1419 ms (s=14480868, size=354032)
Contains: 753 ms (s=7961072, size=354032)
Total: 2173 ms
concurrent_foa, tbb::spin_rw_mutex, single threaded:
Word count: 1351 ms (s=14480868, size=354032)
Contains: 735 ms (s=7961072, size=354032)
Total: 2087 ms
concurrent_foa, std::shared_mutex, single threaded:
Word count: 1650 ms (s=14480868, size=354032)
Contains: 918 ms (s=7961072, size=354032)
Total: 2569 ms
tbb::concurrent_hash_map, single threaded:
Word count: 3239 ms (s=14480868, size=354032)
Contains: 1366 ms (s=7961072, size=354032)
Total: 4605 ms
boost::unordered_flat_map, sharded_prehashed<mutex>:
Word count: 564 ms (s=14480868, size=354032)
Contains: 492 ms (s=7961072, size=354032)
Total: 1057 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>:
Word count: 460 ms (s=14480868, size=354032)
Contains: 344 ms (s=7961072, size=354032)
Total: 804 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>:
Word count: 454 ms (s=14480868, size=354032)
Contains: 283 ms (s=7961072, size=354032)
Total: 738 ms
boost::unordered_flat_map, sharded isolated, prehashed:
Word count: 1555 ms (s=14480868, size=354032)
Contains: 1387 ms (s=7961072, size=354032)
Total: 2943 ms
concurrent foa:
Word count: 498 ms (s=14480868, size=354032)
Contains: 297 ms (s=7961072, size=354032)
Total: 795 ms
concurrent foa, tbb::spin_rw_mutex:
Word count: 549 ms (s=14480868, size=354032)
Contains: 295 ms (s=7961072, size=354032)
Total: 845 ms
concurrent foa, std::shared_mutex:
Word count: 541 ms (s=14480868, size=354032)
Contains: 425 ms (s=7961072, size=354032)
Total: 966 ms
tbb::concurrent_hash_map:
Word count: 1342 ms (s=14480868, size=354032)
Contains: 369 ms (s=7961072, size=354032)
Total: 1712 ms
gtl::parallel_flat_hash_map<std::mutex>:
Word count: 748 ms (s=14480868, size=354032)
Contains: 548 ms (s=7961072, size=354032)
Total: 1296 ms
gtl::parallel_flat_hash_map<std::shared_mutex>:
Word count: 542 ms (s=14480868, size=354032)
Contains: 368 ms (s=7961072, size=354032)
Total: 910 ms
gtl::parallel_flat_hash_map<rw_spinlock>:
Word count: 497 ms (s=14480868, size=354032)
Contains: 420 ms (s=7961072, size=354032)
Total: 918 ms
---
Number of threads: 16
boost::unordered_flat_map, single threaded: 1427 ms
boost::unordered_flat_map, single threaded, shared_mutex: 1961 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 1633 ms
concurrent_foa, single threaded: 2173 ms
concurrent_foa, tbb::spin_rw_mutex, single threaded: 2087 ms
concurrent_foa, std::shared_mutex, single threaded: 2569 ms
tbb::concurrent_hash_map, single threaded: 4605 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 1057 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 804 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 738 ms
boost::unordered_flat_map, sharded isolated, prehashed: 2943 ms
concurrent foa: 795 ms
concurrent foa, tbb::spin_rw_mutex: 845 ms
concurrent foa, std::shared_mutex: 966 ms
tbb::concurrent_hash_map: 1712 ms
gtl::parallel_flat_hash_map<std::mutex>: 1296 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 910 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 918 ms