]> Cypherpunks repositories - gostls13.git/commit
runtime: implement eqstring in assembly.
authorKeith Randall <khr@golang.org>
Tue, 17 Jun 2014 04:00:37 +0000 (21:00 -0700)
committerKeith Randall <khr@golang.org>
Tue, 17 Jun 2014 04:00:37 +0000 (21:00 -0700)
commitb36ed9056ff57c04c34240f2dc6b1bb59e84d0c7
treede1d8c2c62006b26585cf57e0dcb25b88178e6e9
parent38eea5b2ad6a6bf108cf4445506559118e34d782
runtime: implement eqstring in assembly.

BenchmarkCompareStringEqual               10.4          7.33          -29.52%
BenchmarkCompareStringIdentical           3.99          3.67          -8.02%
BenchmarkCompareStringSameLength          9.80          6.84          -30.20%
BenchmarkCompareStringDifferentLength     1.09          0.95          -12.84%
BenchmarkCompareStringBigUnaligned        75220         76071         +1.13%
BenchmarkCompareStringBig                 69843         74746         +7.02%

LGTM=bradfitz, josharian
R=golang-codereviews, bradfitz, josharian, dave, khr
CC=golang-codereviews
https://golang.org/cl/105280044
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/asm_amd64p32.s
src/pkg/runtime/asm_arm.s
src/pkg/runtime/runtime_test.go
src/pkg/runtime/string.goc