diff options
| author | Meng Zhuo <mzh@golangcn.org> | 2021-08-26 09:32:38 +0800 |
|---|---|---|
| committer | Meng Zhuo <mzh@golangcn.org> | 2021-09-02 01:23:38 +0000 |
| commit | 1bd35fab05252450c3f67df18f9976fdaaa4dcf4 (patch) | |
| tree | c6f9f0fcd13200db2ab2e8f1691f02b1fe3903fd /src/syscall/exec_linux.go | |
| parent | df4c625d88859003df65bc5d528942ee6ba793a1 (diff) | |
| download | go-1bd35fab05252450c3f67df18f9976fdaaa4dcf4.tar.xz | |
runtime: use vDSO clock_gettime on linux/riscv64
Speed up nanotime1 and walltime on riscv64 with vDSO, just like the
other vDSO-enabled targets.
name old time/op new time/op delta
Now 1.53µs ± 1% 1.05µs ± 3% -31.74% (p=0.000 n=10+10)
NowUnixNano 1.54µs ± 0% 1.05µs ± 2% -31.91% (p=0.000 n=9+10)
NowUnixMilli 1.56µs ± 1% 1.06µs ± 1% -31.73% (p=0.000 n=10+10)
NowUnixMicro 1.56µs ± 1% 1.05µs ± 1% -32.80% (p=0.000 n=9+10)
Change-Id: I69b3fe3cc57685a826c53b366c0992e8048399bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/328509
Trust: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Meng Zhuo <mzh@golangcn.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
