1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00
go/src
Bryan C. Mills 3058b1f538 encoding/gob: parallelize Encode/Decode benchmarks
Results remain comparable with the non-parallel version with -cpu=1:

benchmark                              old ns/op     new ns/op     delta
BenchmarkEndToEndPipe                  6200          6171          -0.47%
BenchmarkEndToEndPipe-6                1073          1024          -4.57%
BenchmarkEndToEndByteBuffer            2925          2664          -8.92%
BenchmarkEndToEndByteBuffer-6          516           560           +8.53%
BenchmarkEndToEndSliceByteBuffer       231683        237450        +2.49%
BenchmarkEndToEndSliceByteBuffer-6     59080         59452         +0.63%
BenchmarkEncodeComplex128Slice         67541         66003         -2.28%
BenchmarkEncodeComplex128Slice-6       72740         11316         -84.44%
BenchmarkEncodeFloat64Slice            25769         27899         +8.27%
BenchmarkEncodeFloat64Slice-6          26655         4557          -82.90%
BenchmarkEncodeInt32Slice              18685         18845         +0.86%
BenchmarkEncodeInt32Slice-6            18389         3462          -81.17%
BenchmarkEncodeStringSlice             19089         19354         +1.39%
BenchmarkEncodeStringSlice-6           20155         3237          -83.94%
BenchmarkEncodeInterfaceSlice          659601        677129        +2.66%
BenchmarkEncodeInterfaceSlice-6        640974        251621        -60.74%
BenchmarkDecodeComplex128Slice         117130        129955        +10.95%
BenchmarkDecodeComplex128Slice-6       155447        24924         -83.97%
BenchmarkDecodeFloat64Slice            67695         68776         +1.60%
BenchmarkDecodeFloat64Slice-6          82966         15225         -81.65%
BenchmarkDecodeInt32Slice              63102         62733         -0.58%
BenchmarkDecodeInt32Slice-6            77857         13003         -83.30%
BenchmarkDecodeStringSlice             130240        129562        -0.52%
BenchmarkDecodeStringSlice-6           165500        31507         -80.96%
BenchmarkDecodeInterfaceSlice          937637        1060835       +13.14%
BenchmarkDecodeInterfaceSlice-6        973495        270613        -72.20%

updates #18177

Change-Id: Ib3579010faa70827d5cbd02a826dbbb66ca13eb7
Reviewed-on: https://go-review.googlesource.com/36722
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-26 19:04:18 +00:00
..
archive archive/tar: extend TestFileInfoHeaderSymlink 2017-04-25 03:04:46 +00:00
bufio bufio: clarify that Flush returns a cached write error 2017-04-21 00:48:51 +00:00
builtin
bytes
cmd cmd/compile: minor cleanup 2017-04-26 18:01:14 +00:00
compress
container
context context: define behavior for Err before Done is closed 2017-04-26 15:39:18 +00:00
crypto crypto/sha256,crypto/sha512: improve performance for sha{256,512}.block on ppc64le 2017-04-26 12:34:03 +00:00
database/sql database/sql: allow using a single connection from the database 2017-04-24 17:03:05 +00:00
debug
encoding encoding/gob: parallelize Encode/Decode benchmarks 2017-04-26 19:04:18 +00:00
errors
expvar
flag
fmt
go go/internal/gcimporter: add test object files for go1.8 versions 4 and 5 2017-04-25 18:15:20 +00:00
hash
html html/template: use bytes.ContainsAny 2017-04-25 23:36:25 +00:00
image all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
index/suffixarray
internal os, net, internal/poll: return consistent error for closed socket 2017-04-26 00:03:14 +00:00
io io: correctly compute call depth in test 2017-04-18 19:56:54 +00:00
log
math math/big: improve performance for addVV/subVV for ppc64x 2017-04-25 13:15:39 +00:00
mime
net net: fix close on closed listener on Plan 9 2017-04-26 15:04:43 +00:00
os os: consistently return ErrClosed for closed file 2017-04-26 02:54:59 +00:00
path all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
plugin plugin: resolve plugin import path issue 2017-04-26 00:54:54 +00:00
reflect reflect: document ptrdata field of rtype 2017-04-18 15:30:04 +00:00
regexp regexp: remove redundant break 2017-04-25 15:00:06 +00:00
runtime runtime: align mcentral by cache line size 2017-04-26 03:48:23 +00:00
sort
strconv
strings
sync sync: import Map from x/sync/syncmap 2017-04-26 18:05:06 +00:00
syscall syscall: fix ordering of Unshare and chroot on Linux 2017-04-25 04:10:39 +00:00
testing testing: add argument to list tests, benchmarks, and examples 2017-04-26 15:53:32 +00:00
text all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
time all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
unicode
unsafe
vendor/golang_org/x vendor: update vendored route 2017-04-25 21:39:45 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc