Skip to content

Commit

Permalink
remove error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 24, 2021
1 parent 3f9b2ba commit 2472444
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions BENCHMARKING.md
Expand Up @@ -41,9 +41,17 @@ Benchmark #1: ./target/release/similar-sort benchmark < /usr/share/dict/words
Range (min … max): 598.9 ms … 629.1 ms 10 runs
```

hIt's still twice as slow as the Go version, though!
It's still twice as slow as the Go version, though!
Wow!

OK, let's see if we can get some quick flamegraph profiling in here...
## Without error handling

## Profiling
There are not very many things that can go wrong in this program.
Let's just try unwrapping and panicking?

```
$ hyperfine './target/release/similar-sort benchmark < /usr/share/dict/words'
Benchmark #1: ./target/release/similar-sort benchmark < /usr/share/dict/words
Time (mean ± σ): 612.9 ms ± 15.0 ms [User: 3.768 s, System: 0.030 s]
Range (min … max): 595.7 ms … 640.2 ms 10 runs
```

0 comments on commit 2472444

Please sign in to comment.