vendor: Mega update all dependencies

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4080
This commit is contained in:
Jakob Borg
2017-04-05 14:34:41 +00:00
parent 49c1527724
commit a1bcc15458
1354 changed files with 55066 additions and 797850 deletions

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoMarshal-4 1000000 1912 ns/op 194.48 MB/s
BenchmarkNinOptNativeProtoMarshal-4 1000000 2207 ns/op 154.04 MB/s
BenchmarkNidRepNativeProtoMarshal-4 50000 36321 ns/op 195.12 MB/s
BenchmarkNinRepNativeProtoMarshal-4 50000 36979 ns/op 191.65 MB/s
BenchmarkNidRepPackedNativeProtoMarshal-4 50000 29607 ns/op 115.41 MB/s
BenchmarkNinRepPackedNativeProtoMarshal-4 50000 29781 ns/op 114.73 MB/s
BenchmarkNidOptStructProtoMarshal-4 500000 6986 ns/op 201.40 MB/s
BenchmarkNinOptStructProtoMarshal-4 500000 7044 ns/op 180.14 MB/s
BenchmarkNidRepStructProtoMarshal-4 50000 40141 ns/op 219.87 MB/s
BenchmarkNinRepStructProtoMarshal-4 50000 40930 ns/op 215.63 MB/s
BenchmarkNidEmbeddedStructProtoMarshal-4 500000 4595 ns/op 163.62 MB/s
BenchmarkNinEmbeddedStructProtoMarshal-4 500000 4502 ns/op 158.37 MB/s
BenchmarkNidNestedStructProtoMarshal-4 10000 171850 ns/op 215.28 MB/s
BenchmarkNinNestedStructProtoMarshal-4 10000 150174 ns/op 246.19 MB/s
BenchmarkNidOptCustomProtoMarshal-4 1000000 1867 ns/op 38.02 MB/s
BenchmarkNinOptCustomProtoMarshal-4 1000000 1799 ns/op 37.24 MB/s
BenchmarkNidRepCustomProtoMarshal-4 500000 4120 ns/op 43.93 MB/s
BenchmarkNinRepCustomProtoMarshal-4 500000 4059 ns/op 44.58 MB/s
BenchmarkNinOptNativeUnionProtoMarshal-4 1000000 1316 ns/op 23.54 MB/s
BenchmarkNinOptStructUnionProtoMarshal-4 1000000 1945 ns/op 57.06 MB/s
BenchmarkNinEmbeddedStructUnionProtoMarshal-4 1000000 2861 ns/op 84.22 MB/s
BenchmarkNinNestedStructUnionProtoMarshal-4 1000000 2490 ns/op 52.60 MB/s
BenchmarkTreeProtoMarshal-4 1000000 2293 ns/op 109.89 MB/s
BenchmarkOrBranchProtoMarshal-4 500000 4401 ns/op 124.74 MB/s
BenchmarkAndBranchProtoMarshal-4 500000 4394 ns/op 124.93 MB/s
BenchmarkLeafProtoMarshal-4 1000000 1696 ns/op 142.68 MB/s
BenchmarkDeepTreeProtoMarshal-4 500000 3740 ns/op 79.40 MB/s
BenchmarkADeepBranchProtoMarshal-4 500000 4677 ns/op 71.41 MB/s
BenchmarkAndDeepBranchProtoMarshal-4 500000 6597 ns/op 96.25 MB/s
BenchmarkDeepLeafProtoMarshal-4 500000 3179 ns/op 91.21 MB/s
BenchmarkNilProtoMarshal-4 1000000 1326 ns/op 26.39 MB/s
BenchmarkNidOptEnumProtoMarshal-4 1000000 1360 ns/op 27.20 MB/s
BenchmarkNinOptEnumProtoMarshal-4 1000000 1360 ns/op 26.46 MB/s
BenchmarkNidRepEnumProtoMarshal-4 1000000 1314 ns/op 32.72 MB/s
BenchmarkNinRepEnumProtoMarshal-4 1000000 1311 ns/op 32.78 MB/s
BenchmarkNinOptEnumDefaultProtoMarshal-4 1000000 1349 ns/op 26.67 MB/s
BenchmarkAnotherNinOptEnumProtoMarshal-4 1000000 1369 ns/op 26.29 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-4 1000000 1341 ns/op 26.84 MB/s
BenchmarkTimerProtoMarshal-4 1000000 1604 ns/op 65.45 MB/s
BenchmarkMyExtendableProtoMarshal-4 1000000 1545 ns/op 51.75 MB/s
BenchmarkOtherExtenableProtoMarshal-4 1000000 2704 ns/op 58.04 MB/s
BenchmarkNestedDefinitionProtoMarshal-4 500000 4177 ns/op 108.92 MB/s
BenchmarkNestedDefinition_NestedMessageProtoMarshal-4 1000000 2473 ns/op 95.43 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-4 1000000 1616 ns/op 131.14 MB/s
BenchmarkNestedScopeProtoMarshal-4 500000 4058 ns/op 110.14 MB/s
BenchmarkNinOptNativeDefaultProtoMarshal-4 500000 2863 ns/op 118.72 MB/s
BenchmarkCustomContainerProtoMarshal-4 1000000 2289 ns/op 47.17 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 152.674s

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoMarshal-4 5000000 558 ns/op 665.90 MB/s
BenchmarkNinOptNativeProtoMarshal-4 5000000 632 ns/op 537.89 MB/s
BenchmarkNidRepNativeProtoMarshal-4 200000 9070 ns/op 781.29 MB/s
BenchmarkNinRepNativeProtoMarshal-4 200000 8943 ns/op 792.42 MB/s
BenchmarkNidRepPackedNativeProtoMarshal-4 200000 8142 ns/op 419.65 MB/s
BenchmarkNinRepPackedNativeProtoMarshal-4 200000 8114 ns/op 421.11 MB/s
BenchmarkNidOptStructProtoMarshal-4 1000000 2018 ns/op 697.03 MB/s
BenchmarkNinOptStructProtoMarshal-4 1000000 1919 ns/op 661.19 MB/s
BenchmarkNidRepStructProtoMarshal-4 100000 11442 ns/op 771.31 MB/s
BenchmarkNinRepStructProtoMarshal-4 200000 10742 ns/op 821.60 MB/s
BenchmarkNidEmbeddedStructProtoMarshal-4 1000000 1203 ns/op 624.73 MB/s
BenchmarkNinEmbeddedStructProtoMarshal-4 1000000 1135 ns/op 627.68 MB/s
BenchmarkNidNestedStructProtoMarshal-4 50000 56182 ns/op 658.50 MB/s
BenchmarkNinNestedStructProtoMarshal-4 50000 49802 ns/op 742.37 MB/s
BenchmarkNidOptCustomProtoMarshal-4 5000000 303 ns/op 233.89 MB/s
BenchmarkNinOptCustomProtoMarshal-4 10000000 280 ns/op 238.94 MB/s
BenchmarkNidRepCustomProtoMarshal-4 5000000 604 ns/op 299.21 MB/s
BenchmarkNinRepCustomProtoMarshal-4 5000000 599 ns/op 301.77 MB/s
BenchmarkNinOptNativeUnionProtoMarshal-4 10000000 196 ns/op 158.04 MB/s
BenchmarkNinOptStructUnionProtoMarshal-4 5000000 384 ns/op 288.81 MB/s
BenchmarkNinEmbeddedStructUnionProtoMarshal-4 5000000 662 ns/op 363.93 MB/s
BenchmarkNinNestedStructUnionProtoMarshal-4 5000000 502 ns/op 260.48 MB/s
BenchmarkTreeProtoMarshal-4 5000000 558 ns/op 451.53 MB/s
BenchmarkOrBranchProtoMarshal-4 2000000 992 ns/op 553.08 MB/s
BenchmarkAndBranchProtoMarshal-4 2000000 998 ns/op 550.04 MB/s
BenchmarkLeafProtoMarshal-4 5000000 523 ns/op 462.20 MB/s
BenchmarkDeepTreeProtoMarshal-4 5000000 691 ns/op 429.41 MB/s
BenchmarkADeepBranchProtoMarshal-4 2000000 787 ns/op 424.31 MB/s
BenchmarkAndDeepBranchProtoMarshal-4 1000000 1329 ns/op 477.67 MB/s
BenchmarkDeepLeafProtoMarshal-4 5000000 639 ns/op 453.35 MB/s
BenchmarkNilProtoMarshal-4 10000000 189 ns/op 184.92 MB/s
BenchmarkNidOptEnumProtoMarshal-4 10000000 216 ns/op 170.86 MB/s
BenchmarkNinOptEnumProtoMarshal-4 10000000 209 ns/op 171.60 MB/s
BenchmarkNidRepEnumProtoMarshal-4 10000000 237 ns/op 180.80 MB/s
BenchmarkNinRepEnumProtoMarshal-4 10000000 235 ns/op 182.93 MB/s
BenchmarkNinOptEnumDefaultProtoMarshal-4 10000000 209 ns/op 171.51 MB/s
BenchmarkAnotherNinOptEnumProtoMarshal-4 10000000 211 ns/op 170.44 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-4 10000000 214 ns/op 167.95 MB/s
BenchmarkTimerProtoMarshal-4 5000000 344 ns/op 305.21 MB/s
BenchmarkMyExtendableProtoMarshal-4 5000000 695 ns/op 115.09 MB/s
BenchmarkOtherExtenableProtoMarshal-4 1000000 1295 ns/op 121.15 MB/s
BenchmarkNestedDefinitionProtoMarshal-4 2000000 906 ns/op 501.69 MB/s
BenchmarkNestedDefinition_NestedMessageProtoMarshal-4 5000000 537 ns/op 438.85 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-4 5000000 479 ns/op 442.52 MB/s
BenchmarkNestedScopeProtoMarshal-4 2000000 862 ns/op 518.19 MB/s
BenchmarkNinOptNativeDefaultProtoMarshal-4 2000000 758 ns/op 448.10 MB/s
BenchmarkCustomContainerProtoMarshal-4 5000000 390 ns/op 276.58 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 190.796s

View File

@@ -1,138 +0,0 @@
// Protocol Buffers for Go with Gadgets
//
// Copyright (c) 2013, The GoGo Authors. All rights reserved.
// http://github.com/gogo/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package main
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
"strings"
)
type MixMatch struct {
Old []string
New []string
}
func (this *MixMatch) Regenerate() {
fmt.Printf("mixbench\n")
uuidData, err := ioutil.ReadFile("../uuid.go")
if err != nil {
panic(err)
}
if err = ioutil.WriteFile("./testdata/uuid.go", uuidData, 0666); err != nil {
panic(err)
}
data, err := ioutil.ReadFile("../thetest.proto")
if err != nil {
panic(err)
}
content := string(data)
for i, old := range this.Old {
content = strings.Replace(content, old, this.New[i], -1)
}
if err = ioutil.WriteFile("./testdata/thetest.proto", []byte(content), 0666); err != nil {
panic(err)
}
var regenerate = exec.Command("protoc", "--gogo_out=.", "-I=../../:../../protobuf/:../../../../../:.", "./testdata/thetest.proto")
fmt.Printf("regenerating\n")
out, err := regenerate.CombinedOutput()
fmt.Printf("regenerate output: %v\n", string(out))
if err != nil {
panic(err)
}
}
func (this *MixMatch) Bench(rgx string, outFileName string) {
if err := os.MkdirAll("./testdata", 0777); err != nil {
panic(err)
}
this.Regenerate()
var test = exec.Command("go", "test", "-test.timeout=20m", "-test.v", "-test.run=XXX", "-test.bench="+rgx, "./testdata/")
fmt.Printf("benching\n")
out, err := test.CombinedOutput()
fmt.Printf("bench output: %v\n", string(out))
if err != nil {
panic(err)
}
if err := ioutil.WriteFile(outFileName, out, 0666); err != nil {
panic(err)
}
if err := os.RemoveAll("./testdata"); err != nil {
panic(err)
}
}
func NewMixMatch(marshaler, unmarshaler, unsafe_marshaler, unsafe_unmarshaler bool) *MixMatch {
mm := &MixMatch{}
if marshaler {
mm.Old = append(mm.Old, "option (gogoproto.marshaler_all) = false;")
mm.New = append(mm.New, "option (gogoproto.marshaler_all) = true;")
} else {
mm.Old = append(mm.Old, "option (gogoproto.marshaler_all) = true;")
mm.New = append(mm.New, "option (gogoproto.marshaler_all) = false;")
}
if unmarshaler {
mm.Old = append(mm.Old, "option (gogoproto.unmarshaler_all) = false;")
mm.New = append(mm.New, "option (gogoproto.unmarshaler_all) = true;")
} else {
mm.Old = append(mm.Old, "option (gogoproto.unmarshaler_all) = true;")
mm.New = append(mm.New, "option (gogoproto.unmarshaler_all) = false;")
}
if unsafe_marshaler {
mm.Old = append(mm.Old, "option (gogoproto.unsafe_marshaler_all) = false;")
mm.New = append(mm.New, "option (gogoproto.unsafe_marshaler_all) = true;")
} else {
mm.Old = append(mm.Old, "option (gogoproto.unsafe_marshaler_all) = true;")
mm.New = append(mm.New, "option (gogoproto.unsafe_marshaler_all) = false;")
}
if unsafe_unmarshaler {
mm.Old = append(mm.Old, "option (gogoproto.unsafe_unmarshaler_all) = false;")
mm.New = append(mm.New, "option (gogoproto.unsafe_unmarshaler_all) = true;")
} else {
mm.Old = append(mm.Old, "option (gogoproto.unsafe_unmarshaler_all) = true;")
mm.New = append(mm.New, "option (gogoproto.unsafe_unmarshaler_all) = false;")
}
return mm
}
func main() {
NewMixMatch(true, true, false, false).Bench("ProtoMarshal", "marshaler.txt")
NewMixMatch(false, false, false, false).Bench("ProtoMarshal", "marshal.txt")
NewMixMatch(false, false, true, true).Bench("ProtoMarshal", "unsafe_marshaler.txt")
NewMixMatch(true, true, false, false).Bench("ProtoUnmarshal", "unmarshaler.txt")
NewMixMatch(false, false, false, false).Bench("ProtoUnmarshal", "unmarshal.txt")
NewMixMatch(false, false, true, true).Bench("ProtoUnmarshal", "unsafe_unmarshaler.txt")
fmt.Println("Running benchcmp will show the performance difference between using reflect and generated code for marshalling and unmarshalling of protocol buffers")
fmt.Println("$GOROOT/misc/benchcmp marshal.txt marshaler.txt")
fmt.Println("$GOROOT/misc/benchcmp unmarshal.txt unmarshaler.txt")
fmt.Println("$GOROOT/misc/benchcmp marshal.txt unsafe_marshaler.txt")
fmt.Println("$GOROOT/misc/benchcmp unmarshal.txt unsafe_unmarshaler.txt")
}

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoUnmarshal-4 1000000 2006 ns/op 185.44 MB/s
BenchmarkNinOptNativeProtoUnmarshal-4 1000000 1960 ns/op 173.41 MB/s
BenchmarkNidRepNativeProtoUnmarshal-4 50000 36241 ns/op 195.55 MB/s
BenchmarkNinRepNativeProtoUnmarshal-4 50000 35648 ns/op 198.80 MB/s
BenchmarkNidRepPackedNativeProtoUnmarshal-4 100000 18641 ns/op 183.30 MB/s
BenchmarkNinRepPackedNativeProtoUnmarshal-4 100000 18398 ns/op 185.72 MB/s
BenchmarkNidOptStructProtoUnmarshal-4 500000 5938 ns/op 236.92 MB/s
BenchmarkNinOptStructProtoUnmarshal-4 500000 5871 ns/op 216.14 MB/s
BenchmarkNidRepStructProtoUnmarshal-4 50000 46237 ns/op 190.88 MB/s
BenchmarkNinRepStructProtoUnmarshal-4 50000 39915 ns/op 221.12 MB/s
BenchmarkNidEmbeddedStructProtoUnmarshal-4 500000 3946 ns/op 190.56 MB/s
BenchmarkNinEmbeddedStructProtoUnmarshal-4 500000 3997 ns/op 178.35 MB/s
BenchmarkNidNestedStructProtoUnmarshal-4 10000 207132 ns/op 178.61 MB/s
BenchmarkNinNestedStructProtoUnmarshal-4 10000 170116 ns/op 217.33 MB/s
BenchmarkNidOptCustomProtoUnmarshal-4 1000000 2321 ns/op 30.58 MB/s
BenchmarkNinOptCustomProtoUnmarshal-4 1000000 1947 ns/op 34.40 MB/s
BenchmarkNidRepCustomProtoUnmarshal-4 200000 7884 ns/op 22.96 MB/s
BenchmarkNinRepCustomProtoUnmarshal-4 200000 7926 ns/op 22.83 MB/s
BenchmarkNinOptNativeUnionProtoUnmarshal-4 1000000 1242 ns/op 24.94 MB/s
BenchmarkNinOptStructUnionProtoUnmarshal-4 1000000 1550 ns/op 71.58 MB/s
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-4 1000000 2209 ns/op 109.07 MB/s
BenchmarkNinNestedStructUnionProtoUnmarshal-4 1000000 1954 ns/op 67.02 MB/s
BenchmarkTreeProtoUnmarshal-4 1000000 1785 ns/op 141.12 MB/s
BenchmarkOrBranchProtoUnmarshal-4 1000000 2769 ns/op 198.23 MB/s
BenchmarkAndBranchProtoUnmarshal-4 500000 2680 ns/op 204.84 MB/s
BenchmarkLeafProtoUnmarshal-4 1000000 1407 ns/op 171.92 MB/s
BenchmarkDeepTreeProtoUnmarshal-4 1000000 2387 ns/op 124.40 MB/s
BenchmarkADeepBranchProtoUnmarshal-4 1000000 2621 ns/op 127.39 MB/s
BenchmarkAndDeepBranchProtoUnmarshal-4 500000 3853 ns/op 164.79 MB/s
BenchmarkDeepLeafProtoUnmarshal-4 1000000 2027 ns/op 143.02 MB/s
BenchmarkNilProtoUnmarshal-4 1000000 1472 ns/op 23.78 MB/s
BenchmarkNidOptEnumProtoUnmarshal-4 1000000 1597 ns/op 23.16 MB/s
BenchmarkNinOptEnumProtoUnmarshal-4 1000000 1557 ns/op 23.12 MB/s
BenchmarkNidRepEnumProtoUnmarshal-4 1000000 1746 ns/op 24.62 MB/s
BenchmarkNinRepEnumProtoUnmarshal-4 1000000 1779 ns/op 24.16 MB/s
BenchmarkNinOptEnumDefaultProtoUnmarshal-4 1000000 1607 ns/op 22.39 MB/s
BenchmarkAnotherNinOptEnumProtoUnmarshal-4 1000000 1545 ns/op 23.29 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-4 1000000 1578 ns/op 22.81 MB/s
BenchmarkTimerProtoUnmarshal-4 1000000 1572 ns/op 66.79 MB/s
BenchmarkMyExtendableProtoUnmarshal-4 1000000 2610 ns/op 30.64 MB/s
BenchmarkOtherExtenableProtoUnmarshal-4 500000 3792 ns/op 41.40 MB/s
BenchmarkNestedDefinitionProtoUnmarshal-4 500000 2987 ns/op 152.29 MB/s
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-4 1000000 1898 ns/op 124.30 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-4 1000000 1326 ns/op 159.87 MB/s
BenchmarkNestedScopeProtoUnmarshal-4 1000000 2956 ns/op 151.20 MB/s
BenchmarkNinOptNativeDefaultProtoUnmarshal-4 1000000 2244 ns/op 151.45 MB/s
BenchmarkCustomContainerProtoUnmarshal-4 1000000 2652 ns/op 40.71 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 167.715s

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoUnmarshal-4 2000000 792 ns/op 469.35 MB/s
BenchmarkNinOptNativeProtoUnmarshal-4 1000000 1167 ns/op 291.16 MB/s
BenchmarkNidRepNativeProtoUnmarshal-4 100000 25302 ns/op 280.09 MB/s
BenchmarkNinRepNativeProtoUnmarshal-4 100000 25069 ns/op 282.70 MB/s
BenchmarkNidRepPackedNativeProtoUnmarshal-4 100000 16569 ns/op 206.22 MB/s
BenchmarkNinRepPackedNativeProtoUnmarshal-4 100000 16323 ns/op 209.33 MB/s
BenchmarkNidOptStructProtoUnmarshal-4 1000000 3107 ns/op 452.75 MB/s
BenchmarkNinOptStructProtoUnmarshal-4 500000 3262 ns/op 388.98 MB/s
BenchmarkNidRepStructProtoUnmarshal-4 100000 26090 ns/op 338.28 MB/s
BenchmarkNinRepStructProtoUnmarshal-4 100000 26086 ns/op 338.34 MB/s
BenchmarkNidEmbeddedStructProtoUnmarshal-4 1000000 1785 ns/op 421.14 MB/s
BenchmarkNinEmbeddedStructProtoUnmarshal-4 1000000 1838 ns/op 387.83 MB/s
BenchmarkNidNestedStructProtoUnmarshal-4 10000 119933 ns/op 308.47 MB/s
BenchmarkNinNestedStructProtoUnmarshal-4 10000 106914 ns/op 345.81 MB/s
BenchmarkNidOptCustomProtoUnmarshal-4 5000000 485 ns/op 146.36 MB/s
BenchmarkNinOptCustomProtoUnmarshal-4 5000000 648 ns/op 103.26 MB/s
BenchmarkNidRepCustomProtoUnmarshal-4 1000000 1743 ns/op 103.83 MB/s
BenchmarkNinRepCustomProtoUnmarshal-4 1000000 1766 ns/op 102.44 MB/s
BenchmarkNinOptNativeUnionProtoUnmarshal-4 10000000 187 ns/op 165.31 MB/s
BenchmarkNinOptStructUnionProtoUnmarshal-4 5000000 519 ns/op 213.49 MB/s
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-4 2000000 971 ns/op 247.99 MB/s
BenchmarkNinNestedStructUnionProtoUnmarshal-4 2000000 801 ns/op 163.54 MB/s
BenchmarkTreeProtoUnmarshal-4 2000000 789 ns/op 319.14 MB/s
BenchmarkOrBranchProtoUnmarshal-4 1000000 1553 ns/op 353.47 MB/s
BenchmarkAndBranchProtoUnmarshal-4 1000000 1552 ns/op 353.60 MB/s
BenchmarkLeafProtoUnmarshal-4 5000000 654 ns/op 369.63 MB/s
BenchmarkDeepTreeProtoUnmarshal-4 1000000 1219 ns/op 243.63 MB/s
BenchmarkADeepBranchProtoUnmarshal-4 1000000 1504 ns/op 222.02 MB/s
BenchmarkAndDeepBranchProtoUnmarshal-4 1000000 2327 ns/op 272.88 MB/s
BenchmarkDeepLeafProtoUnmarshal-4 1000000 1083 ns/op 267.74 MB/s
BenchmarkNilProtoUnmarshal-4 5000000 401 ns/op 87.26 MB/s
BenchmarkNidOptEnumProtoUnmarshal-4 5000000 412 ns/op 89.66 MB/s
BenchmarkNinOptEnumProtoUnmarshal-4 5000000 451 ns/op 79.80 MB/s
BenchmarkNidRepEnumProtoUnmarshal-4 5000000 670 ns/op 64.12 MB/s
BenchmarkNinRepEnumProtoUnmarshal-4 5000000 667 ns/op 64.40 MB/s
BenchmarkNinOptEnumDefaultProtoUnmarshal-4 5000000 450 ns/op 79.88 MB/s
BenchmarkAnotherNinOptEnumProtoUnmarshal-4 5000000 449 ns/op 80.15 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-4 5000000 448 ns/op 80.24 MB/s
BenchmarkTimerProtoUnmarshal-4 5000000 575 ns/op 182.50 MB/s
BenchmarkMyExtendableProtoUnmarshal-4 1000000 1450 ns/op 55.14 MB/s
BenchmarkOtherExtenableProtoUnmarshal-4 1000000 2567 ns/op 61.15 MB/s
BenchmarkNestedDefinitionProtoUnmarshal-4 1000000 1889 ns/op 240.85 MB/s
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-4 1000000 1080 ns/op 218.42 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-4 5000000 693 ns/op 305.86 MB/s
BenchmarkNestedScopeProtoUnmarshal-4 1000000 1843 ns/op 242.49 MB/s
BenchmarkNinOptNativeDefaultProtoUnmarshal-4 1000000 1342 ns/op 253.25 MB/s
BenchmarkCustomContainerProtoUnmarshal-4 2000000 831 ns/op 129.82 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 170.829s

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoMarshal-4 5000000 531 ns/op 700.19 MB/s
BenchmarkNinOptNativeProtoMarshal-4 5000000 594 ns/op 572.27 MB/s
BenchmarkNidRepNativeProtoMarshal-4 200000 8087 ns/op 876.29 MB/s
BenchmarkNinRepNativeProtoMarshal-4 500000 8344 ns/op 849.34 MB/s
BenchmarkNidRepPackedNativeProtoMarshal-4 200000 7595 ns/op 449.89 MB/s
BenchmarkNinRepPackedNativeProtoMarshal-4 500000 7342 ns/op 465.38 MB/s
BenchmarkNidOptStructProtoMarshal-4 1000000 1928 ns/op 729.46 MB/s
BenchmarkNinOptStructProtoMarshal-4 1000000 1859 ns/op 682.32 MB/s
BenchmarkNidRepStructProtoMarshal-4 100000 10993 ns/op 802.82 MB/s
BenchmarkNinRepStructProtoMarshal-4 200000 10088 ns/op 874.84 MB/s
BenchmarkNidEmbeddedStructProtoMarshal-4 1000000 1179 ns/op 637.53 MB/s
BenchmarkNinEmbeddedStructProtoMarshal-4 1000000 1077 ns/op 661.58 MB/s
BenchmarkNidNestedStructProtoMarshal-4 50000 53464 ns/op 691.97 MB/s
BenchmarkNinNestedStructProtoMarshal-4 50000 47677 ns/op 775.46 MB/s
BenchmarkNidOptCustomProtoMarshal-4 5000000 303 ns/op 234.13 MB/s
BenchmarkNinOptCustomProtoMarshal-4 10000000 284 ns/op 235.56 MB/s
BenchmarkNidRepCustomProtoMarshal-4 5000000 598 ns/op 302.19 MB/s
BenchmarkNinRepCustomProtoMarshal-4 5000000 593 ns/op 304.87 MB/s
BenchmarkNinOptNativeUnionProtoMarshal-4 10000000 190 ns/op 162.47 MB/s
BenchmarkNinOptStructUnionProtoMarshal-4 5000000 374 ns/op 296.15 MB/s
BenchmarkNinEmbeddedStructUnionProtoMarshal-4 5000000 652 ns/op 369.55 MB/s
BenchmarkNinNestedStructUnionProtoMarshal-4 5000000 474 ns/op 275.97 MB/s
BenchmarkTreeProtoMarshal-4 5000000 567 ns/op 444.16 MB/s
BenchmarkOrBranchProtoMarshal-4 1000000 1007 ns/op 544.72 MB/s
BenchmarkAndBranchProtoMarshal-4 1000000 1061 ns/op 517.27 MB/s
BenchmarkLeafProtoMarshal-4 5000000 511 ns/op 473.41 MB/s
BenchmarkDeepTreeProtoMarshal-4 5000000 716 ns/op 414.59 MB/s
BenchmarkADeepBranchProtoMarshal-4 2000000 811 ns/op 411.60 MB/s
BenchmarkAndDeepBranchProtoMarshal-4 1000000 1324 ns/op 479.34 MB/s
BenchmarkDeepLeafProtoMarshal-4 5000000 636 ns/op 455.66 MB/s
BenchmarkNilProtoMarshal-4 10000000 189 ns/op 184.91 MB/s
BenchmarkNidOptEnumProtoMarshal-4 10000000 211 ns/op 174.55 MB/s
BenchmarkNinOptEnumProtoMarshal-4 10000000 207 ns/op 173.24 MB/s
BenchmarkNidRepEnumProtoMarshal-4 10000000 231 ns/op 185.80 MB/s
BenchmarkNinRepEnumProtoMarshal-4 10000000 230 ns/op 186.79 MB/s
BenchmarkNinOptEnumDefaultProtoMarshal-4 10000000 208 ns/op 172.65 MB/s
BenchmarkAnotherNinOptEnumProtoMarshal-4 10000000 207 ns/op 173.15 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-4 10000000 209 ns/op 171.99 MB/s
BenchmarkTimerProtoMarshal-4 5000000 320 ns/op 327.65 MB/s
BenchmarkMyExtendableProtoMarshal-4 5000000 702 ns/op 113.85 MB/s
BenchmarkOtherExtenableProtoMarshal-4 1000000 1329 ns/op 118.07 MB/s
BenchmarkNestedDefinitionProtoMarshal-4 2000000 904 ns/op 502.96 MB/s
BenchmarkNestedDefinition_NestedMessageProtoMarshal-4 5000000 542 ns/op 434.70 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-4 5000000 465 ns/op 455.00 MB/s
BenchmarkNestedScopeProtoMarshal-4 2000000 857 ns/op 521.49 MB/s
BenchmarkNinOptNativeDefaultProtoMarshal-4 5000000 734 ns/op 462.95 MB/s
BenchmarkCustomContainerProtoMarshal-4 5000000 378 ns/op 285.67 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 192.235s

View File

@@ -1,49 +0,0 @@
PASS
BenchmarkNidOptNativeProtoUnmarshal-4 2000000 760 ns/op 488.86 MB/s
BenchmarkNinOptNativeProtoUnmarshal-4 1000000 1130 ns/op 300.67 MB/s
BenchmarkNidRepNativeProtoUnmarshal-4 100000 23698 ns/op 299.05 MB/s
BenchmarkNinRepNativeProtoUnmarshal-4 100000 23400 ns/op 302.86 MB/s
BenchmarkNidRepPackedNativeProtoUnmarshal-4 100000 15286 ns/op 223.53 MB/s
BenchmarkNinRepPackedNativeProtoUnmarshal-4 100000 15375 ns/op 222.23 MB/s
BenchmarkNidOptStructProtoUnmarshal-4 1000000 3019 ns/op 466.02 MB/s
BenchmarkNinOptStructProtoUnmarshal-4 500000 3169 ns/op 400.35 MB/s
BenchmarkNidRepStructProtoUnmarshal-4 100000 25167 ns/op 350.69 MB/s
BenchmarkNinRepStructProtoUnmarshal-4 100000 25199 ns/op 350.25 MB/s
BenchmarkNidEmbeddedStructProtoUnmarshal-4 1000000 1714 ns/op 438.65 MB/s
BenchmarkNinEmbeddedStructProtoUnmarshal-4 1000000 1793 ns/op 397.49 MB/s
BenchmarkNidNestedStructProtoUnmarshal-4 10000 115531 ns/op 320.22 MB/s
BenchmarkNinNestedStructProtoUnmarshal-4 10000 109260 ns/op 338.39 MB/s
BenchmarkNidOptCustomProtoUnmarshal-4 5000000 487 ns/op 145.63 MB/s
BenchmarkNinOptCustomProtoUnmarshal-4 5000000 644 ns/op 103.94 MB/s
BenchmarkNidRepCustomProtoUnmarshal-4 1000000 1733 ns/op 104.42 MB/s
BenchmarkNinRepCustomProtoUnmarshal-4 1000000 1734 ns/op 104.34 MB/s
BenchmarkNinOptNativeUnionProtoUnmarshal-4 10000000 186 ns/op 166.02 MB/s
BenchmarkNinOptStructUnionProtoUnmarshal-4 5000000 512 ns/op 216.66 MB/s
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-4 2000000 954 ns/op 252.56 MB/s
BenchmarkNinNestedStructUnionProtoUnmarshal-4 2000000 788 ns/op 166.15 MB/s
BenchmarkTreeProtoUnmarshal-4 2000000 790 ns/op 318.98 MB/s
BenchmarkOrBranchProtoUnmarshal-4 1000000 1553 ns/op 353.43 MB/s
BenchmarkAndBranchProtoUnmarshal-4 1000000 1554 ns/op 353.09 MB/s
BenchmarkLeafProtoUnmarshal-4 5000000 642 ns/op 376.78 MB/s
BenchmarkDeepTreeProtoUnmarshal-4 1000000 1236 ns/op 240.13 MB/s
BenchmarkADeepBranchProtoUnmarshal-4 1000000 1493 ns/op 223.62 MB/s
BenchmarkAndDeepBranchProtoUnmarshal-4 1000000 2327 ns/op 272.81 MB/s
BenchmarkDeepLeafProtoUnmarshal-4 1000000 1068 ns/op 271.46 MB/s
BenchmarkNilProtoUnmarshal-4 5000000 396 ns/op 88.30 MB/s
BenchmarkNidOptEnumProtoUnmarshal-4 5000000 410 ns/op 90.10 MB/s
BenchmarkNinOptEnumProtoUnmarshal-4 5000000 448 ns/op 80.25 MB/s
BenchmarkNidRepEnumProtoUnmarshal-4 5000000 672 ns/op 63.91 MB/s
BenchmarkNinRepEnumProtoUnmarshal-4 5000000 667 ns/op 64.38 MB/s
BenchmarkNinOptEnumDefaultProtoUnmarshal-4 5000000 446 ns/op 80.63 MB/s
BenchmarkAnotherNinOptEnumProtoUnmarshal-4 5000000 449 ns/op 80.09 MB/s
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-4 5000000 449 ns/op 80.08 MB/s
BenchmarkTimerProtoUnmarshal-4 5000000 554 ns/op 189.24 MB/s
BenchmarkMyExtendableProtoUnmarshal-4 1000000 1445 ns/op 55.36 MB/s
BenchmarkOtherExtenableProtoUnmarshal-4 1000000 2544 ns/op 61.70 MB/s
BenchmarkNestedDefinitionProtoUnmarshal-4 1000000 1847 ns/op 246.34 MB/s
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-4 1000000 1071 ns/op 220.23 MB/s
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-4 5000000 688 ns/op 308.09 MB/s
BenchmarkNestedScopeProtoUnmarshal-4 1000000 1803 ns/op 247.86 MB/s
BenchmarkNinOptNativeDefaultProtoUnmarshal-4 1000000 1330 ns/op 255.61 MB/s
BenchmarkCustomContainerProtoUnmarshal-4 2000000 803 ns/op 134.48 MB/s
ok github.com/gogo/protobuf/test/mixbench/testdata 168.327s