]> Cypherpunks repositories - gostls13.git/commit
math/bits: added benchmarks for Leading/TrailingZeros
authorRobert Griesemer <gri@golang.org>
Fri, 17 Feb 2017 23:21:36 +0000 (15:21 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 17 Feb 2017 23:41:16 +0000 (23:41 +0000)
commita4a3d63dbeb57174ada4b2e5f0fa54c9ec83803b
tree8a8fd5abba7e55e6f020a96b7e1325b35412e1fa
parent19028bdd18483689a3743639fa89d272cbb96c7b
math/bits: added benchmarks for Leading/TrailingZeros

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: Matthew Dempsky <mdempsky@google.com>
src/math/bits/bits_test.go