Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trick the inliner into accepting Sum64String
Benchmarks: name old time/op new time/op delta Sum64String/4B-12 4.94ns ± 3% 3.03ns ± 1% -38.69% (p=0.000 n=10+10) Sum64String/100B-12 14.5ns ± 1% 12.0ns ± 1% -17.22% (p=0.000 n=10+10) Sum64String/4KB-12 229ns ± 1% 227ns ± 0% -1.19% (p=0.000 n=10+9) Sum64String/10MB-12 629µs ± 1% 629µs ± 0% ~ (p=0.408 n=10+8) name old speed new speed delta Sum64String/4B-12 810MB/s ± 3% 1320MB/s ± 1% +63.08% (p=0.000 n=10+10) Sum64String/100B-12 6.92GB/s ± 1% 8.34GB/s ± 1% +20.58% (p=0.000 n=10+10) Sum64String/4KB-12 17.4GB/s ± 1% 17.6GB/s ± 0% +1.11% (p=0.000 n=10+9) Sum64String/10MB-12 15.9GB/s ± 1% 15.9GB/s ± 0% ~ (p=0.408 n=10+8) And with -tags purego: name old time/op new time/op delta Sum64String/4B-12 5.57ns ± 1% 4.22ns ± 1% -24.26% (p=0.000 n=8+10) Sum64String/100B-12 15.9ns ± 0% 14.4ns ± 0% -9.12% (p=0.000 n=8+10) Sum64String/4KB-12 326ns ± 0% 325ns ± 0% -0.33% (p=0.008 n=9+10) Sum64String/10MB-12 858µs ± 0% 860µs ± 1% ~ (p=1.000 n=10+10) name old speed new speed delta Sum64String/4B-12 718MB/s ± 1% 949MB/s ± 1% +32.08% (p=0.000 n=8+10) Sum64String/100B-12 6.29GB/s ± 0% 6.92GB/s ± 0% +10.01% (p=0.000 n=9+10) Sum64String/4KB-12 12.3GB/s ± 0% 12.3GB/s ± 0% +0.37% (p=0.002 n=9+10) Sum64String/10MB-12 11.7GB/s ± 0% 11.6GB/s ± 1% ~ (p=1.000 n=10+10)
- Loading branch information