Skip to content

Commit

Permalink
Merge pull request #53 from yegor256/create-pull-request/patch
Browse files Browse the repository at this point in the history
New results of benchmarking
  • Loading branch information
yegor256 committed Apr 23, 2023
2 parents 6a659e5 + d728724 commit 542865c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Expand Up @@ -67,18 +67,20 @@ while the numbers below 1.0 demonstrate performance loss.
<!-- benchmark -->
| | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 |
| --- | --: | --: | --: | --: | --: | --: | --: | --: |
| `hashbrown::HashMap` | 16.09 | 16.12 | 3.56 | 2.39 | 1.24 | 0.53 | 0.25 | 0.12 |
| `indexmap::IndexMap` | 13.85 | 13.85 | 6.18 | 4.34 | 2.24 | 1.19 | 0.55 | 0.28 |
| `linear_map::LinearMap` | 2.22 | 2.20 | 0.68 | 0.62 | 0.56 | 0.73 | 0.61 | 0.63 |
| `linked_hash_map::LinkedHashMap` | 26.06 | 26.24 | 7.95 | 5.35 | 2.98 | 1.50 | 0.71 | 0.39 |
| `hashbrown::HashMap` | 16.11 | 16.15 | 3.55 | 2.39 | 1.24 | 0.54 | 0.25 | 0.12 |
| `indexmap::IndexMap` | 13.86 | 14.02 | 6.17 | 4.30 | 2.24 | 1.19 | 0.56 | 0.27 |
| `linear_map::LinearMap` | 2.21 | 2.25 | 0.68 | 0.62 | 0.56 | 0.73 | 0.61 | 0.63 |
| `linked_hash_map::LinkedHashMap` | 25.95 | 26.42 | 7.81 | 5.29 | 2.96 | 1.50 | 0.71 | 0.36 |
| `micromap::Map` 馃憤 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| `nohash_hasher::BuildNoHashHasher` | 12.10 | 12.07 | 3.68 | 2.78 | 1.01 | 0.49 | 0.24 | 0.12 |
| `rustc_hash::FxHashMap` | 12.15 | 12.32 | 3.44 | 2.30 | 1.34 | 0.50 | 0.24 | 0.12 |
| `std::collections::BTreeMap` | 22.24 | 22.20 | 4.92 | 3.55 | 2.55 | 1.27 | 0.59 | 0.34 |
| `std::collections::HashMap` | 18.32 | 18.27 | 5.75 | 4.03 | 2.22 | 1.13 | 0.54 | 0.26 |
| `tinymap::array_map::ArrayMap` | 1.20 | 1.41 | 2.12 | 2.41 | 2.25 | 2.38 | 2.23 | 2.05 |

There were 1000000 repetition cycles. The entire benchmark took 292s.
| `nohash_hasher::BuildNoHashHasher` | 12.03 | 12.14 | 3.69 | 2.78 | 1.02 | 0.52 | 0.24 | 0.12 |
| `rustc_hash::FxHashMap` | 12.07 | 12.07 | 3.42 | 2.30 | 1.35 | 0.52 | 0.24 | 0.12 |
| `std::collections::BTreeMap` | 22.24 | 22.03 | 4.92 | 3.43 | 2.65 | 1.28 | 0.59 | 0.35 |
| `std::collections::HashMap` | 18.32 | 18.22 | 5.72 | 4.04 | 2.25 | 1.14 | 0.54 | 0.27 |
| `tinymap::array_map::ArrayMap` | 1.20 | 1.40 | 2.11 | 2.41 | 2.27 | 2.35 | 2.23 | 2.04 |

The experiment was performed on 23-04-2023.
There were 1000000 repetition cycles.
The entire benchmark took 316s.

<!-- benchmark -->

Expand Down

0 comments on commit 542865c

Please sign in to comment.