updated benchmark results

This commit is contained in:
joaquintides
2023-03-21 15:12:37 -04:00
parent b6efb81374
commit 2d9c48c9fa

View File

@@ -1,185 +1,185 @@
enwik8: 14480868 words, 8067 ms
enwik8: 14480868 words, 8139 ms
boost::unordered_flat_map, single threaded:
Word count: 836 ms (s=14480868, size=354032)
Word count: 832 ms (s=14480868, size=354032)
Contains: 535 ms (s=7961072, size=354032)
Contains: 490 ms (s=7961072, size=354032)
Total: 1372 ms
Total: 1322 ms
boost::unordered_flat_map, single threaded, shared_mutex:
Word count: 1033 ms (s=14480868, size=354032)
Word count: 1044 ms (s=14480868, size=354032)
Contains: 738 ms (s=7961072, size=354032)
Contains: 737 ms (s=7961072, size=354032)
Total: 1772 ms
Total: 1781 ms
boost::unordered_flat_map, single threaded, rw_spinlock:
Word count: 910 ms (s=14480868, size=354032)
Word count: 936 ms (s=14480868, size=354032)
Contains: 610 ms (s=7961072, size=354032)
Contains: 642 ms (s=7961072, size=354032)
Total: 1520 ms
Total: 1578 ms
cfoa, single threaded:
Word count: 1309 ms (s=14480868, size=354032)
Word count: 1350 ms (s=14480868, size=354032)
Contains: 732 ms (s=7961072, size=354032)
Contains: 748 ms (s=7961072, size=354032)
Total: 2041 ms
Total: 2099 ms
cfoa, tbb::spin_rw_mutex, single threaded:
Word count: 1282 ms (s=14480868, size=354032)
Word count: 1341 ms (s=14480868, size=354032)
Contains: 724 ms (s=7961072, size=354032)
Contains: 764 ms (s=7961072, size=354032)
Total: 2007 ms
Total: 2105 ms
cfoa, std::shared_mutex, single threaded:
Word count: 1391 ms (s=14480868, size=354032)
Word count: 1451 ms (s=14480868, size=354032)
Contains: 820 ms (s=7961072, size=354032)
Contains: 865 ms (s=7961072, size=354032)
Total: 2212 ms
Total: 2316 ms
foa::concurrent_table, single threaded:
Word count: 1286 ms (s=14480868, size=354032)
Word count: 1320 ms (s=14480868, size=354032)
Contains: 722 ms (s=7961072, size=354032)
Contains: 774 ms (s=7961072, size=354032)
Total: 2009 ms
Total: 2094 ms
tbb::concurrent_hash_map, single threaded:
Word count: 2890 ms (s=14480868, size=354032)
Word count: 2865 ms (s=14480868, size=354032)
Contains: 1130 ms (s=7961072, size=354032)
Contains: 1165 ms (s=7961072, size=354032)
Total: 4021 ms
Total: 4031 ms
boost::unordered_flat_map, sharded_prehashed<mutex>:
Word count: 616 ms (s=14480868, size=354032)
Word count: 498 ms (s=14480868, size=354032)
Contains: 445 ms (s=7961072, size=354032)
Contains: 443 ms (s=7961072, size=354032)
Total: 1061 ms
Total: 941 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>:
Word count: 486 ms (s=14480868, size=354032)
Word count: 473 ms (s=14480868, size=354032)
Contains: 325 ms (s=7961072, size=354032)
Contains: 329 ms (s=7961072, size=354032)
Total: 811 ms
Total: 802 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>:
Word count: 475 ms (s=14480868, size=354032)
Word count: 538 ms (s=14480868, size=354032)
Contains: 287 ms (s=7961072, size=354032)
Contains: 247 ms (s=7961072, size=354032)
Total: 762 ms
Total: 786 ms
boost::unordered_flat_map, sharded isolated, prehashed:
Word count: 537 ms (s=14480868, size=354032)
Word count: 449 ms (s=14480868, size=354032)
Contains: 422 ms (s=7961072, size=354032)
Contains: 354 ms (s=7961072, size=354032)
Total: 959 ms
Total: 803 ms
cfoa:
Word count: 577 ms (s=14480868, size=354032)
Word count: 570 ms (s=14480868, size=354032)
Contains: 302 ms (s=7961072, size=354032)
Contains: 286 ms (s=7961072, size=354032)
Total: 880 ms
Total: 856 ms
cfoa, tbb::spin_rw_mutex:
Word count: 530 ms (s=14480868, size=354032)
Word count: 542 ms (s=14480868, size=354032)
Contains: 253 ms (s=7961072, size=354032)
Contains: 301 ms (s=7961072, size=354032)
Total: 783 ms
Total: 844 ms
cfoa, std::shared_mutex:
Word count: 621 ms (s=14480868, size=354032)
Word count: 623 ms (s=14480868, size=354032)
Contains: 376 ms (s=7961072, size=354032)
Contains: 324 ms (s=7961072, size=354032)
Total: 997 ms
Total: 948 ms
foa::concurrent_table:
Word count: 512 ms (s=14480868, size=354032)
Word count: 585 ms (s=14480868, size=354032)
Contains: 319 ms (s=7961072, size=354032)
Contains: 230 ms (s=7961072, size=354032)
Total: 832 ms
Total: 815 ms
tbb::concurrent_hash_map:
Word count: 958 ms (s=14480868, size=354032)
Word count: 845 ms (s=14480868, size=354032)
Contains: 348 ms (s=7961072, size=354032)
Contains: 346 ms (s=7961072, size=354032)
Total: 1307 ms
Total: 1191 ms
gtl::parallel_flat_hash_map<std::mutex>:
Word count: 577 ms (s=14480868, size=354032)
Word count: 625 ms (s=14480868, size=354032)
Contains: 435 ms (s=7961072, size=354032)
Contains: 505 ms (s=7961072, size=354032)
Total: 1013 ms
Total: 1131 ms
gtl::parallel_flat_hash_map<std::shared_mutex>:
Word count: 505 ms (s=14480868, size=354032)
Word count: 500 ms (s=14480868, size=354032)
Contains: 353 ms (s=7961072, size=354032)
Contains: 333 ms (s=7961072, size=354032)
Total: 859 ms
Total: 834 ms
gtl::parallel_flat_hash_map<rw_spinlock>:
Word count: 498 ms (s=14480868, size=354032)
Word count: 472 ms (s=14480868, size=354032)
Contains: 342 ms (s=7961072, size=354032)
Contains: 364 ms (s=7961072, size=354032)
Total: 841 ms
Total: 837 ms
---
Number of threads: 4
boost::unordered_flat_map, single threaded: 1372 ms
boost::unordered_flat_map, single threaded, shared_mutex: 1772 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 1520 ms
cfoa, single threaded: 2041 ms
cfoa, tbb::spin_rw_mutex, single threaded: 2007 ms
cfoa, std::shared_mutex, single threaded: 2212 ms
foa::concurrent_table, single threaded: 2009 ms
tbb::concurrent_hash_map, single threaded: 4021 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 1061 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 811 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 762 ms
boost::unordered_flat_map, sharded isolated, prehashed: 959 ms
cfoa: 880 ms
cfoa, tbb::spin_rw_mutex: 783 ms
cfoa, std::shared_mutex: 997 ms
foa::concurrent_table: 832 ms
tbb::concurrent_hash_map: 1307 ms
gtl::parallel_flat_hash_map<std::mutex>: 1013 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 859 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 841 ms
boost::unordered_flat_map, single threaded: 1322 ms
boost::unordered_flat_map, single threaded, shared_mutex: 1781 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 1578 ms
cfoa, single threaded: 2099 ms
cfoa, tbb::spin_rw_mutex, single threaded: 2105 ms
cfoa, std::shared_mutex, single threaded: 2316 ms
foa::concurrent_table, single threaded: 2094 ms
tbb::concurrent_hash_map, single threaded: 4031 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 941 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 802 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 786 ms
boost::unordered_flat_map, sharded isolated, prehashed: 803 ms
cfoa: 856 ms
cfoa, tbb::spin_rw_mutex: 844 ms
cfoa, std::shared_mutex: 948 ms
foa::concurrent_table: 815 ms
tbb::concurrent_hash_map: 1191 ms
gtl::parallel_flat_hash_map<std::mutex>: 1131 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 834 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 837 ms