You need to sign in or sign up before continuing.
  • Robert Griesemer's avatar
    math/bits: added benchmarks for Leading/TrailingZeros · a4a3d63d
    Robert Griesemer authored
    BenchmarkLeadingZeros-8      	200000000	         8.80 ns/op
    BenchmarkLeadingZeros8-8     	200000000	         8.21 ns/op
    BenchmarkLeadingZeros16-8    	200000000	         7.49 ns/op
    BenchmarkLeadingZeros32-8    	200000000	         7.80 ns/op
    BenchmarkLeadingZeros64-8    	200000000	         8.67 ns/op
    
    BenchmarkTrailingZeros-8     	1000000000	         2.05 ns/op
    BenchmarkTrailingZeros8-8    	2000000000	         1.94 ns/op
    BenchmarkTrailingZeros16-8   	2000000000	         1.94 ns/op
    BenchmarkTrailingZeros32-8   	2000000000	         1.92 ns/op
    BenchmarkTrailingZeros64-8   	2000000000	         2.03 ns/op
    
    Change-Id: I45497bf2d6369ba6cfc88ded05aa735908af8908
    Reviewed-on: https://go-review.googlesource.com/37220
    
    
    Run-TryBot: Robert Griesemer <gri@golang.org>
    Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
    a4a3d63d
bits_test.go 16.4 KB