]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify the implementation of walltime and nanotime1 on loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Tue, 3 Feb 2026 09:39:40 +0000 (17:39 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Sat, 7 Feb 2026 00:54:36 +0000 (16:54 -0800)
commitd61c0c9283fb1cc3195f113428296976f1fc03ce
tree5170bf3ec3751ab6cfd4e85ff562ff9967ca2015
parent3048de9d6e5693e09c9885ec8b4673dbcf72c1e6
runtime: simplify the implementation of walltime and nanotime1 on loong64

goos: linux
goarch: loong64
pkg: time
cpu: Loongson-3A6000 @ 2500.00MHz
              |   old.txt   |   new.txt                          |
              |   sec/op    |   sec/op      vs base              |
Now             34.82n ± 0%   34.24n ± 0%  -1.67% (p=0.000 n=10)
NowUnixNano     35.44n ± 0%   35.82n ± 0%  +1.07% (p=0.000 n=10)
NowUnixMilli    36.05n ± 0%   34.24n ± 0%  -5.02% (p=0.000 n=10)
NowUnixMicro    36.83n ± 0%   34.83n ± 0%  -5.43% (p=0.000 n=10)
geomean         35.78n        34.78n       -2.80%

Change-Id: I6ab143b61dbf94c91df2e9dfb80ec9b908219825
Reviewed-on: https://go-review.googlesource.com/c/go/+/741380
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
src/runtime/sys_linux_loong64.s