• Robert Griesemer's avatar
    math/bits: faster Rotate functions, added respective benchmarks · 19028bdd
    Robert Griesemer authored
    Measured on 2.3 GHz Intel Core i7, running maxOS 10.12.3.
    
    benchmark                    old ns/op     new ns/op     delta
    BenchmarkRotateLeft-8        7.87          7.00          -11.05%
    BenchmarkRotateLeft8-8       8.41          4.52          -46.25%
    BenchmarkRotateLeft16-8      8.07          4.55          -43.62%
    BenchmarkRotateLeft32-8      8.36          4.73          -43.42%
    BenchmarkRotateLeft64-8      7.93          4.78          -39.72%
    
    BenchmarkRotateRight-8       8.23          6.72          -18.35%
    BenchmarkRotateRight8-8      8.76          4.39          -49.89%
    BenchmarkRotateRight16-8     9.07          4.44          -51.05%
    BenchmarkRotateRight32-8     8.85          4.46          -49.60%
    BenchmarkRotateRight64-8     8.11          4.43          -45.38%
    
    Change-Id: I79ea1e9e6fc65f95794a91f860a911efed3aa8a1
    Reviewed-on: https://go-review.googlesource.com/37219Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    19028bdd
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...