Skip to content

Instantly share code, notes, and snippets.

@elichai
Last active January 28, 2020 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elichai/abdebeeaee7e581bc74c75cb9487b3af to your computer and use it in GitHub Desktop.
Save elichai/abdebeeaee7e581bc74c75cb9487b3af to your computer and use it in GitHub Desktop.
siphash benchmarks
before change:
```
test cpp_bitcoincore_siphash24::str_256 ... bench: 58 ns/iter (+/- 7)
test cpp_bitcoincore_siphash24::str_256_extra ... bench: 60 ns/iter (+/- 6)
test cpp_bitcoincore_siphash24::str_256_extra_specialized ... bench: 22 ns/iter (+/- 1)
test cpp_bitcoincore_siphash24::str_256_specialized ... bench: 22 ns/iter (+/- 1)
test cpp_bitcoincore_siphash24::str_long ... bench: 13,337 ns/iter (+/- 1,107)
test cpp_bitcoincore_siphash24::str_medium ... bench: 645 ns/iter (+/- 28)
test cpp_bitcoincore_siphash24::str_small ... bench: 16 ns/iter (+/- 0)
test cpp_siphash24::str_256 ... bench: 23 ns/iter (+/- 2)
test cpp_siphash24::str_256_extra ... bench: 24 ns/iter (+/- 1)
test cpp_siphash24::str_long ... bench: 3,658 ns/iter (+/- 119)
test cpp_siphash24::str_medium ... bench: 194 ns/iter (+/- 15)
test cpp_siphash24::str_small ... bench: 14 ns/iter (+/- 1)
test csiphashc::str_256 ... bench: 20 ns/iter (+/- 0)
test csiphashc::str_256_extra ... bench: 23 ns/iter (+/- 2)
test csiphashc::str_long ... bench: 3,657 ns/iter (+/- 237)
test csiphashc::str_medium ... bench: 196 ns/iter (+/- 25)
test csiphashc::str_small ... bench: 14 ns/iter (+/- 1)
test rust_bitcoinhashes_siphash24::str_256 ... bench: 22 ns/iter (+/- 1)
test rust_bitcoinhashes_siphash24::str_256_extra ... bench: 23 ns/iter (+/- 3)
test rust_bitcoinhashes_siphash24::str_long ... bench: 3,832 ns/iter (+/- 204)
test rust_bitcoinhashes_siphash24::str_medium ... bench: 197 ns/iter (+/- 8)
test rust_bitcoinhashes_siphash24::str_small ... bench: 10 ns/iter (+/- 0)
test rust_siphash24::str_256 ... bench: 20 ns/iter (+/- 1)
test rust_siphash24::str_256_extra ... bench: 20 ns/iter (+/- 1)
test rust_siphash24::str_long ... bench: 3,877 ns/iter (+/- 251)
test rust_siphash24::str_medium ... bench: 194 ns/iter (+/- 10)
test rust_siphash24::str_small ... bench: 8 ns/iter (+/- 0)
test siphash24c::str_256 ... bench: 20 ns/iter (+/- 0)
test siphash24c::str_256_extra ... bench: 20 ns/iter (+/- 0)
test siphash24c::str_long ... bench: 3,696 ns/iter (+/- 195)
test siphash24c::str_medium ... bench: 191 ns/iter (+/- 11)
test siphash24c::str_small ... bench: 9 ns/iter (+/- 0)
```
after change:
```
test cpp_bitcoincore_siphash24::str_256 ... bench: 27 ns/iter (+/- 1)
test cpp_bitcoincore_siphash24::str_256_extra ... bench: 28 ns/iter (+/- 1)
test cpp_bitcoincore_siphash24::str_256_extra_specialized ... bench: 22 ns/iter (+/- 0)
test cpp_bitcoincore_siphash24::str_256_specialized ... bench: 22 ns/iter (+/- 1)
test cpp_bitcoincore_siphash24::str_long ... bench: 4,105 ns/iter (+/- 88)
test cpp_bitcoincore_siphash24::str_medium ... bench: 213 ns/iter (+/- 12)
test cpp_bitcoincore_siphash24::str_small ... bench: 15 ns/iter (+/- 0)
test cpp_siphash24::str_256 ... bench: 23 ns/iter (+/- 0)
test cpp_siphash24::str_256_extra ... bench: 25 ns/iter (+/- 0)
test cpp_siphash24::str_long ... bench: 3,739 ns/iter (+/- 92)
test cpp_siphash24::str_medium ... bench: 197 ns/iter (+/- 4)
test cpp_siphash24::str_small ... bench: 15 ns/iter (+/- 2)
test csiphashc::str_256 ... bench: 21 ns/iter (+/- 2)
test csiphashc::str_256_extra ... bench: 24 ns/iter (+/- 0)
test csiphashc::str_long ... bench: 3,738 ns/iter (+/- 190)
test csiphashc::str_medium ... bench: 197 ns/iter (+/- 5)
test csiphashc::str_small ... bench: 14 ns/iter (+/- 0)
test rust_bitcoinhashes_siphash24::str_256 ... bench: 23 ns/iter (+/- 1)
test rust_bitcoinhashes_siphash24::str_256_extra ... bench: 22 ns/iter (+/- 1)
test rust_bitcoinhashes_siphash24::str_long ... bench: 4,084 ns/iter (+/- 339)
test rust_bitcoinhashes_siphash24::str_medium ... bench: 205 ns/iter (+/- 9)
test rust_bitcoinhashes_siphash24::str_small ... bench: 10 ns/iter (+/- 0)
test rust_siphash24::str_256 ... bench: 21 ns/iter (+/- 1)
test rust_siphash24::str_256_extra ... bench: 20 ns/iter (+/- 0)
test rust_siphash24::str_long ... bench: 3,834 ns/iter (+/- 104)
test rust_siphash24::str_medium ... bench: 196 ns/iter (+/- 9)
test rust_siphash24::str_small ... bench: 8 ns/iter (+/- 0)
test siphash24c::str_256 ... bench: 20 ns/iter (+/- 1)
test siphash24c::str_256_extra ... bench: 21 ns/iter (+/- 1)
test siphash24c::str_long ... bench: 3,778 ns/iter (+/- 158)
test siphash24c::str_medium ... bench: 196 ns/iter (+/- 10)
test siphash24c::str_small ... bench: 9 ns/iter (+/- 0)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment