FWIW, no difference on my MacBook.
(base) michaels-mbp copybench % go test -bench=.
goos: darwin
goarch: amd64
pkg: localgo/copybench
cpu: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
BenchmarkCopy-8 6999800 169.4 ns/op
BenchmarkCopyG-86967590 170.6 ns/op
PASS
ok
I have a project github.com/perillo/xxx, that currently is available only
locally.
The project has two commands `cmd/a` and `cmd/b`, and some packages with
common API use by the two commands.
`cmd/a` reads an external file and produces a file that is then used by
`cmd/b`.
`cmd/b` and the commo
As Ian has pointed out, software and hardware optimizations may distort the
results of microbenchmarks.
If I run the original benchmarks using go1.18 and go1.19 the Copy and CopyG
ns/op results are reversed.
# Original: https://go.dev/play/p/m1ClnbdbdWi
~/x$ go1.18 version && go1.18 test x_0_t
Thank you very much for your feedback. I have made a new 0.7.0 release
including your suggestions
: https://github.com/intercloud/gobinsec/releases/tag/0.7.0
Enjoy!
Le lundi 18 avril 2022 à 14:48:55 UTC+2, Michel Casabianca a écrit :
> Thank you very much for this feedback. I have made a pull r