Files
boost_unordered_benchmarks/vs-x64/main.cpp.txt
2023-03-27 04:51:43 -04:00

186 lines
4.4 KiB
Plaintext

enwik9: 141176630 words, 80650 ms
boost::unordered_flat_map, single threaded:
Word count: 13645 ms (s=141176630, size=1418655)
Contains: 9115 ms (s=97891799, size=1418655)
Total: 22760 ms
boost::unordered_flat_map, single threaded, shared_mutex:
Word count: 16027 ms (s=141176630, size=1418655)
Contains: 10159 ms (s=97891799, size=1418655)
Total: 26187 ms
boost::unordered_flat_map, single threaded, rw_spinlock:
Word count: 15002 ms (s=141176630, size=1418655)
Contains: 9733 ms (s=97891799, size=1418655)
Total: 24735 ms
cfoa, single threaded:
Word count: 15373 ms (s=141176630, size=1418655)
Contains: 9176 ms (s=97891799, size=1418655)
Total: 24550 ms
cfoa, tbb::spin_rw_mutex, single threaded:
Word count: 14798 ms (s=141176630, size=1418655)
Contains: 9449 ms (s=97891799, size=1418655)
Total: 24248 ms
cfoa, std::shared_mutex, single threaded:
Word count: 14830 ms (s=141176630, size=1418655)
Contains: 9473 ms (s=97891799, size=1418655)
Total: 24304 ms
foa::concurrent_table, single threaded:
Word count: 14920 ms (s=141176630, size=1418655)
Contains: 9684 ms (s=97891799, size=1418655)
Total: 24604 ms
tbb::concurrent_hash_map, single threaded:
Word count: 28916 ms (s=141176630, size=1418655)
Contains: 13496 ms (s=97891799, size=1418655)
Total: 42413 ms
boost::unordered_flat_map, sharded_prehashed<mutex>:
Word count: 6007 ms (s=141176630, size=1418655)
Contains: 4654 ms (s=97891799, size=1418655)
Total: 10662 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>:
Word count: 5217 ms (s=141176630, size=1418655)
Contains: 3842 ms (s=97891799, size=1418655)
Total: 9059 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>:
Word count: 6014 ms (s=141176630, size=1418655)
Contains: 3579 ms (s=97891799, size=1418655)
Total: 9593 ms
boost::unordered_flat_map, sharded isolated, prehashed:
Word count: 5897 ms (s=141176630, size=1418655)
Contains: 4895 ms (s=97891799, size=1418655)
Total: 10793 ms
cfoa:
Word count: 5511 ms (s=141176630, size=1418655)
Contains: 3229 ms (s=97891799, size=1418655)
Total: 8741 ms
cfoa, tbb::spin_rw_mutex:
Word count: 5511 ms (s=141176630, size=1418655)
Contains: 3557 ms (s=97891799, size=1418655)
Total: 9068 ms
cfoa, std::shared_mutex:
Word count: 5515 ms (s=141176630, size=1418655)
Contains: 3306 ms (s=97891799, size=1418655)
Total: 8822 ms
foa::concurrent_table:
Word count: 5655 ms (s=141176630, size=1418655)
Contains: 3652 ms (s=97891799, size=1418655)
Total: 9308 ms
tbb::concurrent_hash_map:
Word count: 10585 ms (s=141176630, size=1418655)
Contains: 4731 ms (s=97891799, size=1418655)
Total: 15317 ms
gtl::parallel_flat_hash_map<std::mutex>:
Word count: 6635 ms (s=141176630, size=1418655)
Contains: 6006 ms (s=97891799, size=1418655)
Total: 12641 ms
gtl::parallel_flat_hash_map<std::shared_mutex>:
Word count: 6596 ms (s=141176630, size=1418655)
Contains: 4142 ms (s=97891799, size=1418655)
Total: 10739 ms
gtl::parallel_flat_hash_map<rw_spinlock>:
Word count: 7932 ms (s=141176630, size=1418655)
Contains: 4412 ms (s=97891799, size=1418655)
Total: 12345 ms
---
Number of threads: 4
boost::unordered_flat_map, single threaded: 22760 ms
boost::unordered_flat_map, single threaded, shared_mutex: 26187 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 24735 ms
cfoa, single threaded: 24550 ms
cfoa, tbb::spin_rw_mutex, single threaded: 24248 ms
cfoa, std::shared_mutex, single threaded: 24304 ms
foa::concurrent_table, single threaded: 24604 ms
tbb::concurrent_hash_map, single threaded: 42413 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 10662 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 9059 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 9593 ms
boost::unordered_flat_map, sharded isolated, prehashed: 10793 ms
cfoa: 8741 ms
cfoa, tbb::spin_rw_mutex: 9068 ms
cfoa, std::shared_mutex: 8822 ms
foa::concurrent_table: 9308 ms
tbb::concurrent_hash_map: 15317 ms
gtl::parallel_flat_hash_map<std::mutex>: 12641 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 10739 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 12345 ms