mirror of
https://github.com/golang/go
synced 2024-11-20 02:24:43 -07:00
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
This commit is contained in:
parent
122c154c60
commit
024a92c1da
@ -104,7 +104,7 @@ TEXT runtime·mincore(SB),7,$0-24
|
|||||||
TEXT time·now(SB), 7, $32
|
TEXT time·now(SB), 7, $32
|
||||||
LEAQ 8(SP), DI
|
LEAQ 8(SP), DI
|
||||||
MOVQ $0, SI
|
MOVQ $0, SI
|
||||||
MOVQ $0xffffffffff600000, AX
|
MOVQ runtime·__vdso_gettimeofday_sym(SB), AX
|
||||||
CALL AX
|
CALL AX
|
||||||
MOVQ 8(SP), AX // sec
|
MOVQ 8(SP), AX // sec
|
||||||
MOVL 16(SP), DX // usec
|
MOVL 16(SP), DX // usec
|
||||||
|
Loading…
Reference in New Issue
Block a user