Skip to content

Commit

Permalink
nope, it's not strsim
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 24, 2021
1 parent 2472444 commit dafad04
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions BENCHMARKING.md
Expand Up @@ -55,3 +55,19 @@ 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
```

Well, not that then.

## Without `strsim`

Maybe `strsim` is doing something inefficient?
What if we try, say, `levenshtein`, which appears to operate on strings directly instead?

```
$ hyperfine './target/release/similar-sort benchmark < /usr/share/dict/words'
Benchmark #1: ./target/release/similar-sort benchmark < /usr/share/dict/words
Time (mean ± σ): 715.6 ms ± 6.9 ms [User: 4.483 s, System: 0.033 s]
Range (min … max): 705.7 ms … 725.5 ms 10 runs
```

So, no to that too!

0 comments on commit dafad04

Please sign in to comment.