Skip to content

Commit

Permalink
Merge pull request #50 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 819826d + a3ed8b4 commit c1e916f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ while the numbers below 1.0 demonstrate performance loss.
<!-- benchmark -->
| | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 |
| --- | --: | --: | --: | --: | --: | --: | --: | --: |
| `hashbrown::HashMap` | 16.10 | 17.56 | 3.58 | 2.36 | 1.24 | 0.52 | 0.25 | 0.14 |
| `linked_hash_map::LinkedHashMap` | 28.86 | 27.05 | 7.96 | 5.12 | 2.95 | 1.45 | 0.73 | 0.39 |
| `micromap::Map` | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| `nohash_hasher::BuildNoHashHasher` | 12.97 | 13.06 | 3.69 | 2.67 | 1.01 | 0.48 | 0.23 | 0.13 |
| `rustc_hash::FxHashMap` | 16.68 | 12.92 | 3.44 | 2.22 | 1.35 | 0.49 | 0.24 | 0.13 |
| `std::collections::BTreeMap` | 27.69 | 23.12 | 4.81 | 3.21 | 2.57 | 1.22 | 0.58 | 0.39 |
| `std::collections::HashMap` | 18.33 | 19.98 | 5.90 | 4.19 | 2.27 | 1.13 | 0.55 | 0.31 |
| `tinymap::array_map::ArrayMap` | 1.39 | 2.42 | 2.28 | 2.11 | 2.28 | 2.38 | 2.18 | 2.29 |

There were 1000000 repetition cycles. The entire benchmark took 259s.
| `hashbrown::HashMap` | 21.52 | 28.87 | 5.45 | 2.94 | 1.73 | 0.67 | 0.35 | 0.17 |
| `linked_hash_map::LinkedHashMap` | 24.11 | 33.25 | 9.68 | 5.62 | 3.53 | 1.71 | 0.93 | 0.46 |
| `micromap::Map` 馃憤 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| `nohash_hasher::BuildNoHashHasher` | 13.92 | 18.69 | 5.14 | 3.39 | 1.45 | 0.92 | 0.34 | 0.17 |
| `rustc_hash::FxHashMap` | 14.09 | 18.88 | 4.88 | 2.83 | 1.85 | 0.87 | 0.31 | 0.16 |
| `std::collections::BTreeMap` | 20.19 | 27.47 | 5.56 | 3.58 | 3.03 | 1.51 | 0.70 | 0.42 |
| `std::collections::HashMap` | 19.85 | 29.16 | 8.15 | 4.39 | 2.79 | 1.32 | 0.74 | 0.36 |
| `tinymap::array_map::ArrayMap` | 1.45 | 1.49 | 2.23 | 2.16 | 2.44 | 2.38 | 2.87 | 2.95 |

There were 1000000 repetition cycles. The entire benchmark took 262s.

<!-- benchmark -->

Expand Down

0 comments on commit c1e916f

Please sign in to comment.