diff options
| author | Anthony Martin <ality@pbrane.org> | 2012-11-07 18:29:31 -0800 |
|---|---|---|
| committer | Anthony Martin <ality@pbrane.org> | 2012-11-07 18:29:31 -0800 |
| commit | 024a92c1da0b5e147df01ed184fe8d655af62900 (patch) | |
| tree | ed8cdddf00ec472746914ed0770eba4f5eb016de /src/pkg/runtime | |
| parent | 122c154c605b83b3edd0324c1b038457bbc70784 (diff) | |
| download | go-024a92c1da0b5e147df01ed184fe8d655af62900.tar.xz | |
runtime: use vDSO for gettimeofday on linux/amd64
Intel Core 2 Duo (2.16 GHz) running 3.6.5-1-ARCH
benchmark old ns/op new ns/op delta
BenchmarkNow 1856 1034 -44.29%
R=rsc
CC=golang-dev
https://golang.org/cl/6826072
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/sys_linux_amd64.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/sys_linux_amd64.s b/src/pkg/runtime/sys_linux_amd64.s index 88810ff74a..ca78ffa6f6 100644 --- a/src/pkg/runtime/sys_linux_amd64.s +++ b/src/pkg/runtime/sys_linux_amd64.s @@ -104,7 +104,7 @@ TEXT runtime·mincore(SB),7,$0-24 TEXT time·now(SB), 7, $32 LEAQ 8(SP), DI MOVQ $0, SI - MOVQ $0xffffffffff600000, AX + MOVQ runtime·__vdso_gettimeofday_sym(SB), AX CALL AX MOVQ 8(SP), AX // sec MOVL 16(SP), DX // usec |
