Skip to content

Instantly share code, notes, and snippets.

@Kubuxu
Created October 6, 2019 21:58
Show Gist options
  • Save Kubuxu/ffd5c53cb6bc16b8cd78bf9b63939a36 to your computer and use it in GitHub Desktop.
Save Kubuxu/ffd5c53cb6bc16b8cd78bf9b63939a36 to your computer and use it in GitHub Desktop.
name time/op
Buzhash2/1K-4 601ns ± 4%
Buzhash2/1M-4 910µs ± 2%
Buzhash2/16M-4 18.8ms ± 1%
Buzhash2/100M-4 116ms ± 2%
Rabin/1K-4 74.3µs ± 3%
Rabin/1M-4 6.12ms ± 3%
Rabin/16M-4 92.1ms ± 4%
Rabin/100M-4 576ms ± 3%
Default/1K-4 590ns ± 5%
Default/1M-4 326µs ± 2%
Default/16M-4 4.32ms ± 2%
Default/100M-4 24.9ms ± 6%
name speed
Buzhash2/1K-4 1.71GB/s ± 4%
Buzhash2/1M-4 1.15GB/s ± 2%
Buzhash2/16M-4 892MB/s ± 1%
Buzhash2/100M-4 904MB/s ± 2%
Rabin/1K-4 13.8MB/s ± 3%
Rabin/1M-4 171MB/s ± 3%
Rabin/16M-4 182MB/s ± 4%
Rabin/100M-4 182MB/s ± 3%
Default/1K-4 1.74GB/s ± 4%
Default/1M-4 3.22GB/s ± 2%
Default/16M-4 3.88GB/s ± 2%
Default/100M-4 4.21GB/s ± 6%
name alloc/op
Buzhash2/1K-4 1.17kB ± 0%
Buzhash2/1M-4 1.08MB ± 1%
Buzhash2/16M-4 17.1MB ± 0%
Buzhash2/100M-4 106MB ± 0%
Rabin/1K-4 402kB ± 1%
Rabin/1M-4 2.25MB ± 0%
Rabin/16M-4 19.2MB ± 0%
Rabin/100M-4 108MB ± 0%
Default/1K-4 1.14kB ± 0%
Default/1M-4 1.05MB ± 0%
Default/16M-4 16.8MB ± 0%
Default/100M-4 105MB ± 0%
name allocs/op
Buzhash2/1K-4 3.00 ± 0%
Buzhash2/1M-4 7.00 ± 0%
Buzhash2/16M-4 71.0 ± 0%
Buzhash2/100M-4 406 ± 0%
Rabin/1K-4 8.00 ± 0%
Rabin/1M-4 22.0 ± 0%
Rabin/16M-4 204 ± 0%
Rabin/100M-4 1.21k ± 0%
Default/1K-4 3.00 ± 0%
Default/1M-4 7.00 ± 0%
Default/16M-4 70.0 ± 0%
Default/100M-4 406 ± 0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment