mirror of https://github.com/golang/go.git
goos: linux
goarch: loong64
pkg: crypto/sha256
cpu: Loongson-3A6000 @ 2500.00MHz
│ bench.old │ bench.new │
│ sec/op │ sec/op vs base │
Hash8Bytes/New 674.0n ± 0% 433.3n ± 0% -35.71% (p=0.000 n=20)
Hash8Bytes/Sum224 695.3n ± 0% 445.8n ± 0% -35.88% (p=0.000 n=20)
Hash8Bytes/Sum256 676.0n ± 0% 475.5n ± 0% -29.66% (p=0.000 n=20)
Hash1K/New 8.982µ ± 0% 4.963µ ± 0% -44.74% (p=0.000 n=20)
Hash1K/Sum224 8.999µ ± 0% 4.975µ ± 0% -44.72% (p=0.000 n=20)
Hash1K/Sum256 8.979µ ± 0% 5.005µ ± 0% -44.26% (p=0.000 n=20)
Hash8K/New 66.97µ ± 0% 36.78µ ± 0% -45.08% (p=0.000 n=20)
Hash8K/Sum224 66.99µ ± 0% 36.79µ ± 0% -45.09% (p=0.000 n=20)
Hash8K/Sum256 66.97µ ± 0% 36.82µ ± 0% -45.03% (p=0.000 n=20)
geomean 7.431µ 4.357µ -41.37%
│ bench.old │ bench.new │
│ B/s │ B/s vs base │
Hash8Bytes/New 11.32Mi ± 0% 17.60Mi ± 0% +55.52% (p=0.000 n=20)
Hash8Bytes/Sum224 10.98Mi ± 0% 17.11Mi ± 0% +55.86% (p=0.000 n=20)
Hash8Bytes/Sum256 11.28Mi ± 0% 16.04Mi ± 0% +42.18% (p=0.000 n=20)
Hash1K/New 108.7Mi ± 0% 196.8Mi ± 0% +80.98% (p=0.000 n=20)
Hash1K/Sum224 108.5Mi ± 0% 196.3Mi ± 0% +80.89% (p=0.000 n=20)
Hash1K/Sum256 108.8Mi ± 0% 195.1Mi ± 0% +79.42% (p=0.000 n=20)
Hash8K/New 116.7Mi ± 0% 212.4Mi ± 0% +82.09% (p=0.000 n=20)
Hash8K/Sum224 116.6Mi ± 0% 212.4Mi ± 0% +82.09% (p=0.000 n=20)
Hash8K/Sum256 116.7Mi ± 0% 212.2Mi ± 0% +81.90% (p=0.000 n=20)
geomean 52.15Mi 88.95Mi +70.55%
goos: linux
goarch: loong64
pkg: crypto/sha256
cpu: Loongson-3A5000 @ 2500.00MHz
│ bench.old │ bench.new │
│ sec/op │ sec/op vs base │
Hash8Bytes/New 855.9n ± 0% 521.1n ± 0% -39.12% (p=0.000 n=20)
Hash8Bytes/Sum224 875.2n ± 0% 532.7n ± 1% -39.13% (p=0.000 n=20)
Hash8Bytes/Sum256 909.4n ± 0% 553.9n ± 0% -39.09% (p=0.000 n=20)
Hash1K/New 11.304µ ± 0% 5.684µ ± 0% -49.72% (p=0.000 n=20)
Hash1K/Sum224 11.323µ ± 0% 5.690µ ± 0% -49.75% (p=0.000 n=20)
Hash1K/Sum256 11.341µ ± 0% 5.714µ ± 0% -49.62% (p=0.000 n=20)
Hash8K/New 84.26µ ± 0% 41.97µ ± 0% -50.19% (p=0.000 n=20)
Hash8K/Sum224 84.27µ ± 0% 41.99µ ± 0% -50.18% (p=0.000 n=20)
Hash8K/Sum256 84.32µ ± 0% 42.01µ ± 0% -50.18% (p=0.000 n=20)
geomean 9.434µ 5.041µ -46.56%
│ bench.old │ bench.new │
│ B/s │ B/s vs base │
Hash8Bytes/New 8.917Mi ± 0% 14.639Mi ± 0% +64.17% (p=0.000 n=20)
Hash8Bytes/Sum224 8.717Mi ± 0% 14.319Mi ± 1% +64.28% (p=0.000 n=20)
Hash8Bytes/Sum256 8.392Mi ± 0% 13.771Mi ± 0% +64.09% (p=0.000 n=20)
Hash1K/New 86.39Mi ± 0% 171.81Mi ± 0% +98.89% (p=0.000 n=20)
Hash1K/Sum224 86.25Mi ± 0% 171.64Mi ± 0% +99.00% (p=0.000 n=20)
Hash1K/Sum256 86.11Mi ± 0% 170.92Mi ± 0% +98.49% (p=0.000 n=20)
Hash8K/New 92.72Mi ± 0% 186.13Mi ± 0% +100.75% (p=0.000 n=20)
Hash8K/Sum224 92.71Mi ± 0% 186.07Mi ± 0% +100.71% (p=0.000 n=20)
Hash8K/Sum256 92.65Mi ± 0% 185.99Mi ± 0% +100.74% (p=0.000 n=20)
geomean 41.08Mi 76.87Mi +87.12%
Change-Id: Ib41d19d136b8593339af94a822942c102238891b
Reviewed-on: https://go-review.googlesource.com/c/go/+/590155
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
|
||
|---|---|---|
| .. | ||
| archive | ||
| arena | ||
| bufio | ||
| builtin | ||
| bytes | ||
| cmd | ||
| cmp | ||
| compress | ||
| container | ||
| context | ||
| crypto | ||
| database/sql | ||
| debug | ||
| embed | ||
| encoding | ||
| errors | ||
| expvar | ||
| flag | ||
| fmt | ||
| go | ||
| hash | ||
| html | ||
| image | ||
| index/suffixarray | ||
| internal | ||
| io | ||
| iter | ||
| log | ||
| maps | ||
| math | ||
| mime | ||
| net | ||
| os | ||
| path | ||
| plugin | ||
| reflect | ||
| regexp | ||
| runtime | ||
| slices | ||
| sort | ||
| strconv | ||
| strings | ||
| structs | ||
| sync | ||
| syscall | ||
| testdata | ||
| testing | ||
| text | ||
| time | ||
| unicode | ||
| unique | ||
| unsafe | ||
| vendor | ||
| Make.dist | ||
| README.vendor | ||
| all.bash | ||
| all.bat | ||
| all.rc | ||
| bootstrap.bash | ||
| buildall.bash | ||
| clean.bash | ||
| clean.bat | ||
| clean.rc | ||
| cmp.bash | ||
| go.mod | ||
| go.sum | ||
| make.bash | ||
| make.bat | ||
| make.rc | ||
| race.bash | ||
| race.bat | ||
| run.bash | ||
| run.bat | ||
| run.rc | ||
README.vendor
Vendoring in std and cmd
========================
The Go command maintains copies of external packages needed by the
standard library in the src/vendor and src/cmd/vendor directories.
There are two modules, std and cmd, defined in src/go.mod and
src/cmd/go.mod. When a package outside std or cmd is imported
by a package inside std or cmd, the import path is interpreted
as if it had a "vendor/" prefix. For example, within "crypto/tls",
an import of "golang.org/x/crypto/cryptobyte" resolves to
"vendor/golang.org/x/crypto/cryptobyte". When a package with the
same path is imported from a package outside std or cmd, it will
be resolved normally. Consequently, a binary may be built with two
copies of a package at different versions if the package is
imported normally and vendored by the standard library.
Vendored packages are internally renamed with a "vendor/" prefix
to preserve the invariant that all packages have distinct paths.
This is necessary to avoid compiler and linker conflicts. Adding
a "vendor/" prefix also maintains the invariant that standard
library packages begin with a dotless path element.
The module requirements of std and cmd do not influence version
selection in other modules. They are only considered when running
module commands like 'go get' and 'go mod vendor' from a directory
in GOROOT/src.
Maintaining vendor directories
==============================
Before updating vendor directories, ensure that module mode is enabled.
Make sure that GO111MODULE is not set in the environment, or that it is
set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.
Requirements may be added, updated, and removed with 'go get'.
The vendor directory may be updated with 'go mod vendor'.
A typical sequence might be:
cd src # or src/cmd
go get golang.org/x/net@master
go mod tidy
go mod vendor
Use caution when passing '-u' to 'go get'. The '-u' flag updates
modules providing all transitively imported packages, not only
the module providing the target package.
Note that 'go mod vendor' only copies packages that are transitively
imported by packages in the current module. If a new package is needed,
it should be imported before running 'go mod vendor'.