Skip to content

Commit

Permalink
readme - benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
vmikk committed Oct 4, 2024
1 parent 77bd563 commit 617f36b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,17 @@ hyperfine \
'seqhasher --headersonly --hash xxhash,murmur3 big.fasta - > /dev/null'
```

| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---------- | -------------:| -------:| -------:| -----------:|
| sha1 | 1.753 ± 0.328 | 1.549 | 2.532 | 1.43 ± 0.41 |
| md5 | 2.120 ± 0.437 | 1.685 | 2.718 | 1.73 ± 0.52 |
| xxhash | 1.223 ± 0.269 | 0.921 | 1.512 | 1.00 |
| cityhash | 1.288 ± 0.250 | 1.038 | 1.647 | 1.05 ± 0.31 |
| murmur3 | 1.224 ± 0.230 | 1.032 | 1.610 | 1.00 ± 0.29 |
| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---------------|--------------:|--------:|--------:|------------:|
| sha1 | 1.646 ± 0.056 | 1.566 | 1.754 | 1.64 ± 0.11 |
| md5 | 1.774 ± 0.082 | 1.666 | 1.937 | 1.76 ± 0.13 |
| xxhash | 1.006 ± 0.059 | 0.963 | 1.134 | 1.00 |
| cityhash | 1.101 ± 0.035 | 1.059 | 1.171 | 1.09 ± 0.07 |
| murmur3 | 1.079 ± 0.021 | 1.051 | 1.114 | 1.07 ± 0.07 |
| nthash | 2.216 ± 0.069 | 2.134 | 2.318 | 2.20 ± 0.15 |
| blake3 | 1.707 ± 0.024 | 1.662 | 1.731 | 1.70 ± 0.10 |
| sha1+blake3 | 3.672 ± 0.214 | 3.424 | 3.921 | 3.65 ± 0.30 |
| xxhash+murmur3 | 2.273 ± 0.237 | 2.070 | 2.819 | 2.26 ± 0.27 |

As shown, xxHash and MurmurHash3 offer the best performance, while MD5 is the slowest among the tested algorithms.

Expand Down

0 comments on commit 617f36b

Please sign in to comment.