Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db01007
commit 142af0c
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Benchmarking | ||
|
||
This program started out life as a fairly simple Go program that just runs everything in a single thread. | ||
I'm rewriting it in Rust for learning, but also because I think Rayon might let me make this problem parallelizable! | ||
|
||
Here's an initial benchmark on a `/usr/share/dict/words` of 235,886 lines: | ||
|
||
``` | ||
$ hyperfine './result/bin/similar-sort benchmark < /usr/share/dict/words' | ||
Benchmark #1: ./result/bin/similar-sort benchmark < /usr/share/dict/words | ||
Time (mean ± σ): 307.4 ms ± 6.0 ms [User: 273.5 ms, System: 75.5 ms] | ||
Range (min … max): 298.3 ms … 317.2 ms 10 runs | ||
``` | ||
|
||
Let's see if we can get any faster than that! |