diff options
| author | Keith Randall <khr@golang.org> | 2014-02-06 17:43:22 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-02-06 17:43:22 -0800 |
| commit | da7cf0ba5d5aed78f07c82508f0fa88e6dd69ea7 (patch) | |
| tree | 53946fc6bf0ab051d12b2804bc2d4dcb48fb401d /src/pkg/runtime/export_test.go | |
| parent | aac872e11806b7a66ab51f5efab7496a36e4f3da (diff) | |
| download | go-da7cf0ba5d5aed78f07c82508f0fa88e6dd69ea7.tar.xz | |
runtime: faster memclr on x86.
Use explicit SSE writes instead of REP STOSQ.
benchmark old ns/op new ns/op delta
BenchmarkMemclr5 22 5 -73.62%
BenchmarkMemclr16 27 5 -78.49%
BenchmarkMemclr64 28 6 -76.43%
BenchmarkMemclr256 34 8 -74.94%
BenchmarkMemclr4096 112 84 -24.73%
BenchmarkMemclr65536 1902 1920 +0.95%
LGTM=dvyukov
R=golang-codereviews, dvyukov
CC=golang-codereviews
https://golang.org/cl/60090044
Diffstat (limited to 'src/pkg/runtime/export_test.go')
| -rw-r--r-- | src/pkg/runtime/export_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/export_test.go b/src/pkg/runtime/export_test.go index d170fa72ae..5448ce23a2 100644 --- a/src/pkg/runtime/export_test.go +++ b/src/pkg/runtime/export_test.go @@ -84,3 +84,7 @@ func GogoBytes() int32 var hashLoad float64 // declared in hashmap.c var HashLoad = &hashLoad + +func memclrBytes(b []byte) + +var MemclrBytes = memclrBytes |
