]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: using wyrand for fastrand on linux/loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Fri, 4 Nov 2022 09:01:21 +0000 (17:01 +0800)
committerWayne Zuo <wdvxdr@golangcn.org>
Wed, 9 Nov 2022 06:30:59 +0000 (06:30 +0000)
commit3a41094107237535673bdbbdaabc10e54cb2b67c
tree506e8b50d375724ef655a3f8f4c4217b09fffad7
parent268f4629df14f5b256ba51b78e1cf5799ce9818b
runtime: using wyrand for fastrand on linux/loong64

Benchmarks on linux/loong64:
name               old time/op    new time/op    delta
Fastrand           4.06ns ± 0%    3.60ns ± 0%    -11.29%  (p=0.000 n=32+27)
Fastrand64         7.20ns ± 0%    7.16ns ± 0%     -0.52%  (p=0.000 n=23+31)
FastrandHashiter   49.5ns ± 1%    48.9ns ± 2%     -1.24%  (p=0.000 n=32+32)
Fastrandn/2        4.45ns ± 0%    3.81ns ± 0%    -14.37%  (p=0.000 n=32+32)
Fastrandn/3        4.45ns ± 0%    3.81ns ± 0%    -14.32%  (p=0.000 n=32+32)
Fastrandn/4        4.45ns ± 0%    3.81ns ± 0%    -14.33%  (p=0.000 n=31+32)
Fastrandn/5        4.44ns ± 0%    3.81ns ± 0%    -14.26%  (p=0.000 n=31+30)

Change-Id: I0aba7d2331221426c44cc0d0dddecca3b585fda4
Reviewed-on: https://go-review.googlesource.com/c/go/+/446896
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/stubs.go