[go] runtime: simplify the implementation of walltime and nanotime1 on loong64

0 views
Skip to first unread message

abner chenc (Gerrit)

unread,
Feb 6, 2026, 7:54:51 PM (2 days ago) Feb 6
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Knyszek, sophie zhao, Meidan Li, Keith Randall, Keith Randall, Go LUCI, Austin Clements, Martin Möhrmann, Gopher Robot, golang-co...@googlegroups.com

abner chenc submitted the change

Change information

Commit message:
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-by: Keith Randall <k...@google.com>
Reviewed-by: Michael Knyszek <mkny...@google.com>
Reviewed-by: Keith Randall <k...@golang.org>
Reviewed-by: sophie zhao <zhaox...@loongson.cn>
Reviewed-by: Meidan Li <lime...@loongson.cn>
Files:
  • M src/runtime/sys_linux_loong64.s
Change size: S
Delta: 1 file changed, 8 insertions(+), 14 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Keith Randall, +1 by sophie zhao, +1 by Keith Randall, +2 by Meidan Li, +1 by Michael Knyszek
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I6ab143b61dbf94c91df2e9dfb80ec9b908219825
Gerrit-Change-Number: 741380
Gerrit-PatchSet: 2
Gerrit-Owner: abner chenc <chen...@loongson.cn>
Gerrit-Reviewer: Austin Clements <aus...@google.com>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
Gerrit-Reviewer: Martin Möhrmann <moeh...@google.com>
Gerrit-Reviewer: Meidan Li <lime...@loongson.cn>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-Reviewer: abner chenc <chen...@loongson.cn>
Gerrit-Reviewer: sophie zhao <zhaox...@loongson.cn>
Gerrit-CC: Gopher Robot <go...@golang.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages