Open
Conversation
Member
|
Tip: we can use |
Collaborator
Author
This allows me to use any branch name, commit hash or version tag to benchmark with the current dev version (and against each other). For example: export const benchConfig: BenchConfig = {
versions: [
"v2.0.11",
"7a52c4ac82c33396c2e2ea90e2896ccf3a03256b",
"main",
],
...
}benchmark avg (min … max) p75 / p99 (min … top 1%)
------------------------------------------- -------------------------------
• count:1, size:small
------------------------------------------- -------------------------------
ohash @ v2.0.11 497.56 ns/iter 477.08 ns ▆█
(457.46 ns … 905.65 ns) 841.28 ns ██
( 0.00 b … 726.00 b) 12.63 b ██▃▁▁▁▁▁▁▁▁▁▁▁▁▁▂▁▁▂▁
ohash @ 7a52c4a 453.85 ns/iter 431.23 ns █▅
(415.98 ns … 825.99 ns) 787.21 ns ██
( 0.00 b … 1.03 kb) 31.17 b ██▂▂▁▁▁▁▁▁▁▁▂▁▂▁▁▁▂▁▁
ohash @ main 475.14 ns/iter 448.85 ns █
(431.98 ns … 1.01 µs) 851.39 ns ██
( 0.00 b … 1.29 kb) 36.44 b ██▁▁▁▂▁▁▁▁▁▁▂▂▁▁▁▁▁▁▁
ohash @ dev 406.66 ns/iter 386.36 ns █▃
(370.59 ns … 962.38 ns) 769.31 ns ██
( 0.00 b … 1.10 kb) 29.73 b ██▂▁▁▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁
summary
ohash @ dev
1.12x faster than ohash @ 7a52c4a
1.17x faster than ohash @ main
1.22x faster than ohash @ v2.0.11 |
Collaborator
Author
|
I decided to remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I created a small util to automatically download specific versions from GitHub to compare with each other and the current version.
Added custom benchmarks.
Added the same benchmarks for bun using
mitata.Added
bench:buncommand to run the bun benchmark.