Commit 7c46b96
committed
Benchmark hash functions on their own
Quickphf is the quickest of the three hash functions in this benchmark,
then hashify, then phf. This is inconsistent with the previous
benchmarks for `unescape()` and `unescape_attribute()`.
hash/hashmap time: [22.337 ns 22.432 ns 22.548 ns]
hash/hashify time: [13.932 ns 14.036 ns 14.150 ns]
hash/phf time: [23.504 ns 23.601 ns 23.703 ns]
hash/quickphf time: [14.353 ns 14.427 ns 14.520 ns]
hash/matchgen time: [9.0193 ns 9.0741 ns 9.1346 ns]
(The hashmap benchmark uses `std::collections::HashMap` for reference.)1 parent 8f7b4e1 commit 7c46b96
File tree
70 files changed
+18560
-50
lines changed- benches
- target/criterion
- data/main/hash
- hashify
- hashmap
- matchgen
- phf
- quickphf
- reports
- hash
- hashify
- hashmap
- matchgen
- phf
- quickphf
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
70 files changed
+18560
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
0 commit comments