updated benchmark results

This commit is contained in:
joaquintides
2023-03-24 05:17:54 -04:00
parent 21bcdf79f4
commit a40a9bfd71

View File

@@ -1,185 +1,185 @@
enwik8: 14480868 words, 7920 ms
enwik8: 14480868 words, 8144 ms
boost::unordered_flat_map, single threaded:
Word count: 837 ms (s=14480868, size=354032)
Word count: 810 ms (s=14480868, size=354032)
Contains: 521 ms (s=7961072, size=354032)
Contains: 485 ms (s=7961072, size=354032)
Total: 1358 ms
Total: 1295 ms
boost::unordered_flat_map, single threaded, shared_mutex:
Word count: 1104 ms (s=14480868, size=354032)
Word count: 1040 ms (s=14480868, size=354032)
Contains: 749 ms (s=7961072, size=354032)
Contains: 700 ms (s=7961072, size=354032)
Total: 1854 ms
Total: 1741 ms
boost::unordered_flat_map, single threaded, rw_spinlock:
Word count: 923 ms (s=14480868, size=354032)
Word count: 908 ms (s=14480868, size=354032)
Contains: 619 ms (s=7961072, size=354032)
Contains: 614 ms (s=7961072, size=354032)
Total: 1542 ms
Total: 1523 ms
cfoa, single threaded:
Word count: 1340 ms (s=14480868, size=354032)
Word count: 1329 ms (s=14480868, size=354032)
Contains: 745 ms (s=7961072, size=354032)
Contains: 734 ms (s=7961072, size=354032)
Total: 2085 ms
Total: 2064 ms
cfoa, tbb::spin_rw_mutex, single threaded:
Word count: 1369 ms (s=14480868, size=354032)
Word count: 1341 ms (s=14480868, size=354032)
Contains: 748 ms (s=7961072, size=354032)
Contains: 815 ms (s=7961072, size=354032)
Total: 2118 ms
Total: 2157 ms
cfoa, std::shared_mutex, single threaded:
Word count: 1449 ms (s=14480868, size=354032)
Word count: 1514 ms (s=14480868, size=354032)
Contains: 862 ms (s=7961072, size=354032)
Contains: 933 ms (s=7961072, size=354032)
Total: 2311 ms
Total: 2447 ms
foa::concurrent_table, single threaded:
Word count: 1364 ms (s=14480868, size=354032)
Word count: 1281 ms (s=14480868, size=354032)
Contains: 742 ms (s=7961072, size=354032)
Contains: 729 ms (s=7961072, size=354032)
Total: 2107 ms
Total: 2011 ms
tbb::concurrent_hash_map, single threaded:
Word count: 2905 ms (s=14480868, size=354032)
Word count: 2955 ms (s=14480868, size=354032)
Contains: 1168 ms (s=7961072, size=354032)
Contains: 1165 ms (s=7961072, size=354032)
Total: 4073 ms
Total: 4120 ms
boost::unordered_flat_map, sharded_prehashed<mutex>:
Word count: 586 ms (s=14480868, size=354032)
Word count: 501 ms (s=14480868, size=354032)
Contains: 388 ms (s=7961072, size=354032)
Contains: 457 ms (s=7961072, size=354032)
Total: 974 ms
Total: 959 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>:
Word count: 486 ms (s=14480868, size=354032)
Contains: 278 ms (s=7961072, size=354032)
Contains: 300 ms (s=7961072, size=354032)
Total: 765 ms
Total: 787 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>:
Word count: 478 ms (s=14480868, size=354032)
Word count: 505 ms (s=14480868, size=354032)
Contains: 254 ms (s=7961072, size=354032)
Contains: 321 ms (s=7961072, size=354032)
Total: 733 ms
Total: 827 ms
boost::unordered_flat_map, sharded isolated, prehashed:
Word count: 459 ms (s=14480868, size=354032)
Word count: 545 ms (s=14480868, size=354032)
Contains: 380 ms (s=7961072, size=354032)
Contains: 375 ms (s=7961072, size=354032)
Total: 840 ms
Total: 921 ms
cfoa:
Word count: 589 ms (s=14480868, size=354032)
Word count: 529 ms (s=14480868, size=354032)
Contains: 300 ms (s=7961072, size=354032)
Contains: 244 ms (s=7961072, size=354032)
Total: 890 ms
Total: 774 ms
cfoa, tbb::spin_rw_mutex:
Word count: 489 ms (s=14480868, size=354032)
Word count: 483 ms (s=14480868, size=354032)
Contains: 313 ms (s=7961072, size=354032)
Contains: 256 ms (s=7961072, size=354032)
Total: 803 ms
Total: 739 ms
cfoa, std::shared_mutex:
Word count: 621 ms (s=14480868, size=354032)
Word count: 633 ms (s=14480868, size=354032)
Contains: 300 ms (s=7961072, size=354032)
Contains: 330 ms (s=7961072, size=354032)
Total: 922 ms
Total: 963 ms
foa::concurrent_table:
Word count: 637 ms (s=14480868, size=354032)
Word count: 567 ms (s=14480868, size=354032)
Contains: 349 ms (s=7961072, size=354032)
Contains: 295 ms (s=7961072, size=354032)
Total: 986 ms
Total: 863 ms
tbb::concurrent_hash_map:
Word count: 1036 ms (s=14480868, size=354032)
Word count: 1079 ms (s=14480868, size=354032)
Contains: 441 ms (s=7961072, size=354032)
Contains: 420 ms (s=7961072, size=354032)
Total: 1477 ms
Total: 1500 ms
gtl::parallel_flat_hash_map<std::mutex>:
Word count: 649 ms (s=14480868, size=354032)
Word count: 695 ms (s=14480868, size=354032)
Contains: 496 ms (s=7961072, size=354032)
Contains: 469 ms (s=7961072, size=354032)
Total: 1145 ms
Total: 1164 ms
gtl::parallel_flat_hash_map<std::shared_mutex>:
Word count: 497 ms (s=14480868, size=354032)
Word count: 602 ms (s=14480868, size=354032)
Contains: 335 ms (s=7961072, size=354032)
Contains: 382 ms (s=7961072, size=354032)
Total: 832 ms
Total: 984 ms
gtl::parallel_flat_hash_map<rw_spinlock>:
Word count: 558 ms (s=14480868, size=354032)
Word count: 590 ms (s=14480868, size=354032)
Contains: 326 ms (s=7961072, size=354032)
Contains: 391 ms (s=7961072, size=354032)
Total: 884 ms
Total: 982 ms
---
Number of threads: 4
boost::unordered_flat_map, single threaded: 1358 ms
boost::unordered_flat_map, single threaded, shared_mutex: 1854 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 1542 ms
cfoa, single threaded: 2085 ms
cfoa, tbb::spin_rw_mutex, single threaded: 2118 ms
cfoa, std::shared_mutex, single threaded: 2311 ms
foa::concurrent_table, single threaded: 2107 ms
tbb::concurrent_hash_map, single threaded: 4073 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 974 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 765 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 733 ms
boost::unordered_flat_map, sharded isolated, prehashed: 840 ms
cfoa: 890 ms
cfoa, tbb::spin_rw_mutex: 803 ms
cfoa, std::shared_mutex: 922 ms
foa::concurrent_table: 986 ms
tbb::concurrent_hash_map: 1477 ms
gtl::parallel_flat_hash_map<std::mutex>: 1145 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 832 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 884 ms
boost::unordered_flat_map, single threaded: 1295 ms
boost::unordered_flat_map, single threaded, shared_mutex: 1741 ms
boost::unordered_flat_map, single threaded, rw_spinlock: 1523 ms
cfoa, single threaded: 2064 ms
cfoa, tbb::spin_rw_mutex, single threaded: 2157 ms
cfoa, std::shared_mutex, single threaded: 2447 ms
foa::concurrent_table, single threaded: 2011 ms
tbb::concurrent_hash_map, single threaded: 4120 ms
boost::unordered_flat_map, sharded_prehashed<mutex>: 959 ms
boost::unordered_flat_map, sharded_prehashed<shared_mutex>: 787 ms
boost::unordered_flat_map, sharded_prehashed<rw_spinlock>: 827 ms
boost::unordered_flat_map, sharded isolated, prehashed: 921 ms
cfoa: 774 ms
cfoa, tbb::spin_rw_mutex: 739 ms
cfoa, std::shared_mutex: 963 ms
foa::concurrent_table: 863 ms
tbb::concurrent_hash_map: 1500 ms
gtl::parallel_flat_hash_map<std::mutex>: 1164 ms
gtl::parallel_flat_hash_map<std::shared_mutex>: 984 ms
gtl::parallel_flat_hash_map<rw_spinlock>: 982 ms