cmd/stdiscosrv: New discovery server (fixes #4618)
This is a new revision of the discovery server. Relevant changes and non-changes: - Protocol towards clients is unchanged. - Recommended large scale design is still to be deployed nehind nginx (I tested, and it's still a lot faster at terminating TLS). - Database backend is leveldb again, only. It scales enough, is easy to setup, and we don't need any backend to take care of. - Server supports replication. This is a simple TCP channel - protect it with a firewall when deploying over the internet. (We deploy this within the same datacenter, and with firewall.) Any incoming client announces are sent over the replication channel(s) to other peer discosrvs. Incoming replication changes are applied to the database as if they came from clients, but without the TLS/certificate overhead. - Metrics are exposed using the prometheus library, when enabled. - The database values and replication protocol is protobuf, because JSON was quite CPU intensive when I tried that and benchmarked it. - The "Retry-After" value for failed lookups gets slowly increased from a default of 120 seconds, by 5 seconds for each failed lookup, independently by each discosrv. This lowers the query load over time for clients that are never seen. The Retry-After maxes out at 3600 after a couple of weeks of this increase. The number of failed lookups is stored in the database, now and then (avoiding making each lookup a database put). All in all this means clients can be pointed towards a cluster using just multiple A / AAAA records to gain both load sharing and redundancy (if one is down, clients will talk to the remaining ones). GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4648
This commit is contained in:
1
vendor/github.com/gogo/protobuf/test/mixbench/.gitignore
generated
vendored
Normal file
1
vendor/github.com/gogo/protobuf/test/mixbench/.gitignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
mixbench
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/marshal.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/marshal.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test
|
||||
BenchmarkNidOptNativeProtoMarshal-8 2000000 831 ns/op 276.72 MB/s
|
||||
BenchmarkNinOptNativeProtoMarshal-8 2000000 931 ns/op 224.49 MB/s
|
||||
BenchmarkNidRepNativeProtoMarshal-8 500000 2341 ns/op 349.71 MB/s
|
||||
BenchmarkNinRepNativeProtoMarshal-8 500000 2500 ns/op 327.56 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoMarshal-8 500000 3542 ns/op 105.30 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoMarshal-8 500000 3571 ns/op 104.44 MB/s
|
||||
BenchmarkNidOptStructProtoMarshal-8 500000 2386 ns/op 354.44 MB/s
|
||||
BenchmarkNinOptStructProtoMarshal-8 500000 2361 ns/op 324.30 MB/s
|
||||
BenchmarkNidRepStructProtoMarshal-8 200000 5585 ns/op 317.40 MB/s
|
||||
BenchmarkNinRepStructProtoMarshal-8 200000 5608 ns/op 316.16 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoMarshal-8 1000000 1475 ns/op 327.39 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoMarshal-8 1000000 1465 ns/op 312.60 MB/s
|
||||
BenchmarkNidNestedStructProtoMarshal-8 100000 14816 ns/op 278.74 MB/s
|
||||
BenchmarkNinNestedStructProtoMarshal-8 100000 13744 ns/op 283.03 MB/s
|
||||
BenchmarkNidOptCustomProtoMarshal-8 3000000 539 ns/op 131.63 MB/s
|
||||
BenchmarkCustomDashProtoMarshal-8 3000000 474 ns/op 172.86 MB/s
|
||||
BenchmarkNinOptCustomProtoMarshal-8 3000000 578 ns/op 115.81 MB/s
|
||||
BenchmarkNidRepCustomProtoMarshal-8 1000000 1700 ns/op 107.04 MB/s
|
||||
BenchmarkNinRepCustomProtoMarshal-8 1000000 1715 ns/op 106.07 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoMarshal-8 5000000 346 ns/op 46.17 MB/s
|
||||
BenchmarkNinOptStructUnionProtoMarshal-8 3000000 518 ns/op 121.60 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoMarshal-8 2000000 785 ns/op 189.70 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoMarshal-8 2000000 657 ns/op 118.58 MB/s
|
||||
BenchmarkTreeProtoMarshal-8 3000000 584 ns/op 176.32 MB/s
|
||||
BenchmarkOrBranchProtoMarshal-8 2000000 997 ns/op 245.52 MB/s
|
||||
BenchmarkAndBranchProtoMarshal-8 2000000 982 ns/op 249.36 MB/s
|
||||
BenchmarkLeafProtoMarshal-8 3000000 453 ns/op 213.86 MB/s
|
||||
BenchmarkDeepTreeProtoMarshal-8 2000000 822 ns/op 176.28 MB/s
|
||||
BenchmarkADeepBranchProtoMarshal-8 2000000 931 ns/op 196.52 MB/s
|
||||
BenchmarkAndDeepBranchProtoMarshal-8 1000000 1515 ns/op 219.09 MB/s
|
||||
BenchmarkDeepLeafProtoMarshal-8 2000000 696 ns/op 200.89 MB/s
|
||||
BenchmarkNilProtoMarshal-8 10000000 219 ns/op 159.54 MB/s
|
||||
BenchmarkNidOptEnumProtoMarshal-8 5000000 275 ns/op 134.49 MB/s
|
||||
BenchmarkNinOptEnumProtoMarshal-8 5000000 314 ns/op 130.50 MB/s
|
||||
BenchmarkNidRepEnumProtoMarshal-8 3000000 516 ns/op 114.31 MB/s
|
||||
BenchmarkNinRepEnumProtoMarshal-8 3000000 516 ns/op 114.21 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoMarshal-8 5000000 308 ns/op 132.80 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoMarshal-8 5000000 311 ns/op 131.65 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-8 5000000 312 ns/op 131.11 MB/s
|
||||
BenchmarkTimerProtoMarshal-8 3000000 503 ns/op 208.34 MB/s
|
||||
BenchmarkMyExtendableProtoMarshal-8 2000000 689 ns/op 117.49 MB/s
|
||||
BenchmarkOtherExtenableProtoMarshal-8 1000000 1356 ns/op 116.48 MB/s
|
||||
BenchmarkNestedDefinitionProtoMarshal-8 2000000 919 ns/op 252.30 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoMarshal-8 3000000 566 ns/op 210.03 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-8 5000000 395 ns/op 207.58 MB/s
|
||||
BenchmarkNestedScopeProtoMarshal-8 2000000 840 ns/op 265.32 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoMarshal-8 2000000 932 ns/op 224.11 MB/s
|
||||
BenchmarkCustomContainerProtoMarshal-8 2000000 680 ns/op 160.07 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoMarshal-8 2000000 844 ns/op 272.51 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoMarshal-8 2000000 915 ns/op 228.30 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoMarshal-8 500000 2346 ns/op 348.99 MB/s
|
||||
BenchmarkCustomNameNinStructProtoMarshal-8 500000 3010 ns/op 318.50 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoMarshal-8 1000000 2003 ns/op 106.79 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoMarshal-8 2000000 757 ns/op 196.79 MB/s
|
||||
BenchmarkCustomNameEnumProtoMarshal-8 5000000 375 ns/op 119.68 MB/s
|
||||
BenchmarkNoExtensionsMapProtoMarshal-8 3000000 423 ns/op 191.12 MB/s
|
||||
BenchmarkUnrecognizedProtoMarshal-8 5000000 279 ns/op 160.80 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoMarshal-8 3000000 582 ns/op 161.34 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoMarshal-8 10000000 209 ns/op 23.87 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoMarshal-8 3000000 497 ns/op 178.98 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoMarshal-8 10000000 216 ns/op 23.12 MB/s
|
||||
BenchmarkNodeProtoMarshal-8 3000000 436 ns/op 231.46 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoMarshal-8 2000000 843 ns/op 93.69 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoMarshal-8 2000000 851 ns/op 97.47 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoMarshal-8 2000000 857 ns/op 92.15 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoMarshal-8 500000 2748 ns/op 83.67 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoMarshal-8 500000 2750 ns/op 83.62 MB/s
|
||||
BenchmarkProtoTypeProtoMarshal-8 5000000 395 ns/op 207.07 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test 159.241s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/marshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/marshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/both
|
||||
BenchmarkNidOptNativeProtoMarshal-8 5000000 240 ns/op 955.07 MB/s
|
||||
BenchmarkNinOptNativeProtoMarshal-8 5000000 277 ns/op 752.54 MB/s
|
||||
BenchmarkNidRepNativeProtoMarshal-8 1000000 1074 ns/op 762.27 MB/s
|
||||
BenchmarkNinRepNativeProtoMarshal-8 1000000 1065 ns/op 768.51 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoMarshal-8 1000000 1033 ns/op 361.05 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoMarshal-8 1000000 1018 ns/op 366.08 MB/s
|
||||
BenchmarkNidOptStructProtoMarshal-8 1000000 1024 ns/op 825.83 MB/s
|
||||
BenchmarkNinOptStructProtoMarshal-8 2000000 974 ns/op 785.66 MB/s
|
||||
BenchmarkNidRepStructProtoMarshal-8 500000 2593 ns/op 683.64 MB/s
|
||||
BenchmarkNinRepStructProtoMarshal-8 500000 2443 ns/op 725.73 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoMarshal-8 3000000 582 ns/op 829.86 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoMarshal-8 3000000 557 ns/op 821.40 MB/s
|
||||
BenchmarkNidNestedStructProtoMarshal-8 200000 7862 ns/op 525.28 MB/s
|
||||
BenchmarkNinNestedStructProtoMarshal-8 200000 6228 ns/op 624.58 MB/s
|
||||
BenchmarkNidOptCustomProtoMarshal-8 20000000 95.1 ns/op 746.84 MB/s
|
||||
BenchmarkCustomDashProtoMarshal-8 20000000 92.5 ns/op 886.08 MB/s
|
||||
BenchmarkNinOptCustomProtoMarshal-8 20000000 96.2 ns/op 696.51 MB/s
|
||||
BenchmarkNidRepCustomProtoMarshal-8 5000000 258 ns/op 703.59 MB/s
|
||||
BenchmarkNinRepCustomProtoMarshal-8 5000000 267 ns/op 679.91 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoMarshal-8 20000000 68.8 ns/op 232.44 MB/s
|
||||
BenchmarkNinOptStructUnionProtoMarshal-8 10000000 137 ns/op 457.92 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoMarshal-8 5000000 259 ns/op 573.18 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoMarshal-8 10000000 212 ns/op 366.72 MB/s
|
||||
BenchmarkTreeProtoMarshal-8 10000000 154 ns/op 666.39 MB/s
|
||||
BenchmarkOrBranchProtoMarshal-8 5000000 353 ns/op 692.18 MB/s
|
||||
BenchmarkAndBranchProtoMarshal-8 5000000 348 ns/op 703.45 MB/s
|
||||
BenchmarkLeafProtoMarshal-8 20000000 118 ns/op 820.16 MB/s
|
||||
BenchmarkDeepTreeProtoMarshal-8 5000000 251 ns/op 576.84 MB/s
|
||||
BenchmarkADeepBranchProtoMarshal-8 5000000 308 ns/op 594.07 MB/s
|
||||
BenchmarkAndDeepBranchProtoMarshal-8 2000000 604 ns/op 549.21 MB/s
|
||||
BenchmarkDeepLeafProtoMarshal-8 10000000 213 ns/op 654.76 MB/s
|
||||
BenchmarkNilProtoMarshal-8 30000000 50.1 ns/op 698.93 MB/s
|
||||
BenchmarkNidOptEnumProtoMarshal-8 20000000 61.7 ns/op 599.27 MB/s
|
||||
BenchmarkNinOptEnumProtoMarshal-8 20000000 77.8 ns/op 527.05 MB/s
|
||||
BenchmarkNidRepEnumProtoMarshal-8 10000000 186 ns/op 316.64 MB/s
|
||||
BenchmarkNinRepEnumProtoMarshal-8 10000000 183 ns/op 321.59 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoMarshal-8 20000000 77.9 ns/op 526.44 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoMarshal-8 20000000 78.9 ns/op 519.95 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-8 20000000 78.6 ns/op 521.58 MB/s
|
||||
BenchmarkTimerProtoMarshal-8 20000000 103 ns/op 1011.39 MB/s
|
||||
BenchmarkMyExtendableProtoMarshal-8 3000000 515 ns/op 157.02 MB/s
|
||||
BenchmarkOtherExtenableProtoMarshal-8 2000000 1000 ns/op 157.91 MB/s
|
||||
BenchmarkNestedDefinitionProtoMarshal-8 5000000 285 ns/op 811.76 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoMarshal-8 10000000 142 ns/op 837.36 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-8 20000000 93.3 ns/op 878.69 MB/s
|
||||
BenchmarkNestedScopeProtoMarshal-8 5000000 260 ns/op 854.95 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoMarshal-8 5000000 277 ns/op 752.14 MB/s
|
||||
BenchmarkCustomContainerProtoMarshal-8 10000000 141 ns/op 772.49 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoMarshal-8 5000000 242 ns/op 947.27 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoMarshal-8 5000000 276 ns/op 754.67 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoMarshal-8 1000000 1043 ns/op 785.18 MB/s
|
||||
BenchmarkCustomNameNinStructProtoMarshal-8 1000000 1294 ns/op 740.75 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoMarshal-8 5000000 298 ns/op 715.82 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoMarshal-8 5000000 255 ns/op 583.23 MB/s
|
||||
BenchmarkCustomNameEnumProtoMarshal-8 20000000 102 ns/op 441.00 MB/s
|
||||
BenchmarkNoExtensionsMapProtoMarshal-8 20000000 118 ns/op 684.15 MB/s
|
||||
BenchmarkUnrecognizedProtoMarshal-8 20000000 66.4 ns/op 677.96 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoMarshal-8 10000000 168 ns/op 557.06 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoMarshal-8 30000000 43.4 ns/op 115.08 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoMarshal-8 10000000 126 ns/op 704.09 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoMarshal-8 30000000 43.7 ns/op 114.32 MB/s
|
||||
BenchmarkNodeProtoMarshal-8 10000000 121 ns/op 833.02 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoMarshal-8 10000000 123 ns/op 641.79 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoMarshal-8 10000000 130 ns/op 633.95 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoMarshal-8 10000000 124 ns/op 636.74 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoMarshal-8 5000000 387 ns/op 592.85 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoMarshal-8 5000000 390 ns/op 589.05 MB/s
|
||||
BenchmarkProtoTypeProtoMarshal-8 20000000 94.1 ns/op 871.54 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/both 139.443s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/oldmarshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/oldmarshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/both
|
||||
BenchmarkNidOptNativeProtoMarshal-8 5000000 255 ns/op 898.51 MB/s
|
||||
BenchmarkNinOptNativeProtoMarshal-8 5000000 292 ns/op 714.19 MB/s
|
||||
BenchmarkNidRepNativeProtoMarshal-8 1000000 1215 ns/op 673.78 MB/s
|
||||
BenchmarkNinRepNativeProtoMarshal-8 1000000 1129 ns/op 724.87 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoMarshal-8 1000000 1070 ns/op 348.30 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoMarshal-8 1000000 1126 ns/op 331.05 MB/s
|
||||
BenchmarkNidOptStructProtoMarshal-8 1000000 1090 ns/op 775.47 MB/s
|
||||
BenchmarkNinOptStructProtoMarshal-8 1000000 1077 ns/op 711.02 MB/s
|
||||
BenchmarkNidRepStructProtoMarshal-8 500000 2826 ns/op 627.36 MB/s
|
||||
BenchmarkNinRepStructProtoMarshal-8 500000 2585 ns/op 685.69 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoMarshal-8 2000000 661 ns/op 729.67 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoMarshal-8 2000000 612 ns/op 747.51 MB/s
|
||||
BenchmarkNidNestedStructProtoMarshal-8 200000 8685 ns/op 475.50 MB/s
|
||||
BenchmarkNinNestedStructProtoMarshal-8 200000 7278 ns/op 534.43 MB/s
|
||||
BenchmarkNidOptCustomProtoMarshal-8 20000000 99.3 ns/op 715.23 MB/s
|
||||
BenchmarkCustomDashProtoMarshal-8 20000000 94.7 ns/op 866.23 MB/s
|
||||
BenchmarkNinOptCustomProtoMarshal-8 20000000 100 ns/op 663.46 MB/s
|
||||
BenchmarkNidRepCustomProtoMarshal-8 5000000 275 ns/op 661.13 MB/s
|
||||
BenchmarkNinRepCustomProtoMarshal-8 5000000 274 ns/op 662.53 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoMarshal-8 20000000 74.9 ns/op 213.63 MB/s
|
||||
BenchmarkNinOptStructUnionProtoMarshal-8 10000000 150 ns/op 417.38 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoMarshal-8 5000000 273 ns/op 545.04 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoMarshal-8 10000000 239 ns/op 325.57 MB/s
|
||||
BenchmarkTreeProtoMarshal-8 10000000 164 ns/op 627.52 MB/s
|
||||
BenchmarkOrBranchProtoMarshal-8 5000000 384 ns/op 637.63 MB/s
|
||||
BenchmarkAndBranchProtoMarshal-8 5000000 386 ns/op 633.51 MB/s
|
||||
BenchmarkLeafProtoMarshal-8 10000000 123 ns/op 786.11 MB/s
|
||||
BenchmarkDeepTreeProtoMarshal-8 5000000 258 ns/op 561.33 MB/s
|
||||
BenchmarkADeepBranchProtoMarshal-8 5000000 327 ns/op 559.19 MB/s
|
||||
BenchmarkAndDeepBranchProtoMarshal-8 2000000 650 ns/op 510.35 MB/s
|
||||
BenchmarkDeepLeafProtoMarshal-8 10000000 219 ns/op 638.44 MB/s
|
||||
BenchmarkNilProtoMarshal-8 30000000 51.0 ns/op 686.29 MB/s
|
||||
BenchmarkNidOptEnumProtoMarshal-8 20000000 62.5 ns/op 591.74 MB/s
|
||||
BenchmarkNinOptEnumProtoMarshal-8 20000000 78.7 ns/op 521.09 MB/s
|
||||
BenchmarkNidRepEnumProtoMarshal-8 10000000 186 ns/op 316.21 MB/s
|
||||
BenchmarkNinRepEnumProtoMarshal-8 10000000 179 ns/op 328.20 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoMarshal-8 20000000 81.4 ns/op 503.41 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoMarshal-8 20000000 85.7 ns/op 478.31 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-8 20000000 83.6 ns/op 490.49 MB/s
|
||||
BenchmarkTimerProtoMarshal-8 20000000 110 ns/op 952.31 MB/s
|
||||
BenchmarkMyExtendableProtoMarshal-8 3000000 508 ns/op 159.38 MB/s
|
||||
BenchmarkOtherExtenableProtoMarshal-8 1000000 1090 ns/op 144.83 MB/s
|
||||
BenchmarkNestedDefinitionProtoMarshal-8 5000000 302 ns/op 765.71 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoMarshal-8 10000000 147 ns/op 805.16 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-8 20000000 94.4 ns/op 868.83 MB/s
|
||||
BenchmarkNestedScopeProtoMarshal-8 5000000 275 ns/op 809.77 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoMarshal-8 5000000 283 ns/op 737.12 MB/s
|
||||
BenchmarkCustomContainerProtoMarshal-8 10000000 142 ns/op 765.46 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoMarshal-8 5000000 255 ns/op 900.47 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoMarshal-8 5000000 284 ns/op 735.53 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoMarshal-8 1000000 1056 ns/op 775.01 MB/s
|
||||
BenchmarkCustomNameNinStructProtoMarshal-8 1000000 1471 ns/op 651.55 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoMarshal-8 5000000 304 ns/op 703.60 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoMarshal-8 5000000 268 ns/op 554.35 MB/s
|
||||
BenchmarkCustomNameEnumProtoMarshal-8 20000000 103 ns/op 435.03 MB/s
|
||||
BenchmarkNoExtensionsMapProtoMarshal-8 20000000 115 ns/op 702.08 MB/s
|
||||
BenchmarkUnrecognizedProtoMarshal-8 20000000 67.0 ns/op 671.64 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoMarshal-8 10000000 175 ns/op 536.86 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoMarshal-8 30000000 47.6 ns/op 105.15 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoMarshal-8 10000000 134 ns/op 659.48 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoMarshal-8 30000000 47.1 ns/op 106.07 MB/s
|
||||
BenchmarkNodeProtoMarshal-8 10000000 125 ns/op 804.09 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoMarshal-8 10000000 131 ns/op 602.08 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoMarshal-8 10000000 133 ns/op 623.02 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoMarshal-8 10000000 134 ns/op 588.03 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoMarshal-8 3000000 402 ns/op 570.96 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoMarshal-8 3000000 394 ns/op 583.29 MB/s
|
||||
BenchmarkProtoTypeProtoMarshal-8 20000000 94.3 ns/op 869.83 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/both 140.308s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/oldunmarshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/oldunmarshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/both
|
||||
BenchmarkNidOptNativeProtoUnmarshal-8 3000000 441 ns/op 520.98 MB/s
|
||||
BenchmarkNinOptNativeProtoUnmarshal-8 2000000 638 ns/op 327.14 MB/s
|
||||
BenchmarkNidRepNativeProtoUnmarshal-8 500000 2830 ns/op 289.36 MB/s
|
||||
BenchmarkNinRepNativeProtoUnmarshal-8 500000 2859 ns/op 286.37 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoUnmarshal-8 1000000 1813 ns/op 205.67 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoUnmarshal-8 1000000 1793 ns/op 207.96 MB/s
|
||||
BenchmarkNidOptStructProtoUnmarshal-8 1000000 1876 ns/op 450.92 MB/s
|
||||
BenchmarkNinOptStructProtoUnmarshal-8 1000000 1992 ns/op 384.38 MB/s
|
||||
BenchmarkNidRepStructProtoUnmarshal-8 300000 5234 ns/op 338.72 MB/s
|
||||
BenchmarkNinRepStructProtoUnmarshal-8 300000 5097 ns/op 347.79 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoUnmarshal-8 1000000 1077 ns/op 448.06 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoUnmarshal-8 1000000 1088 ns/op 420.67 MB/s
|
||||
BenchmarkNidNestedStructProtoUnmarshal-8 100000 11850 ns/op 348.52 MB/s
|
||||
BenchmarkNinNestedStructProtoUnmarshal-8 200000 11242 ns/op 346.02 MB/s
|
||||
BenchmarkNidOptCustomProtoUnmarshal-8 10000000 196 ns/op 361.07 MB/s
|
||||
BenchmarkCustomDashProtoUnmarshal-8 10000000 228 ns/op 359.22 MB/s
|
||||
BenchmarkNinOptCustomProtoUnmarshal-8 5000000 243 ns/op 275.11 MB/s
|
||||
BenchmarkNidRepCustomProtoUnmarshal-8 2000000 811 ns/op 224.17 MB/s
|
||||
BenchmarkNinRepCustomProtoUnmarshal-8 2000000 812 ns/op 223.94 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoUnmarshal-8 20000000 78.0 ns/op 205.18 MB/s
|
||||
BenchmarkNinOptStructUnionProtoUnmarshal-8 10000000 198 ns/op 318.01 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-8 3000000 465 ns/op 320.00 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoUnmarshal-8 5000000 329 ns/op 236.72 MB/s
|
||||
BenchmarkTreeProtoUnmarshal-8 5000000 301 ns/op 341.52 MB/s
|
||||
BenchmarkOrBranchProtoUnmarshal-8 2000000 788 ns/op 310.72 MB/s
|
||||
BenchmarkAndBranchProtoUnmarshal-8 2000000 809 ns/op 302.61 MB/s
|
||||
BenchmarkLeafProtoUnmarshal-8 10000000 226 ns/op 428.13 MB/s
|
||||
BenchmarkDeepTreeProtoUnmarshal-8 3000000 564 ns/op 256.96 MB/s
|
||||
BenchmarkADeepBranchProtoUnmarshal-8 2000000 746 ns/op 244.98 MB/s
|
||||
BenchmarkAndDeepBranchProtoUnmarshal-8 1000000 1262 ns/op 263.05 MB/s
|
||||
BenchmarkDeepLeafProtoUnmarshal-8 3000000 474 ns/op 294.99 MB/s
|
||||
BenchmarkNilProtoUnmarshal-8 10000000 139 ns/op 251.16 MB/s
|
||||
BenchmarkNidOptEnumProtoUnmarshal-8 10000000 145 ns/op 254.37 MB/s
|
||||
BenchmarkNinOptEnumProtoUnmarshal-8 10000000 204 ns/op 200.49 MB/s
|
||||
BenchmarkNidRepEnumProtoUnmarshal-8 3000000 453 ns/op 130.01 MB/s
|
||||
BenchmarkNinRepEnumProtoUnmarshal-8 3000000 444 ns/op 132.65 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoUnmarshal-8 10000000 199 ns/op 205.24 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoUnmarshal-8 10000000 208 ns/op 196.86 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-8 10000000 201 ns/op 203.57 MB/s
|
||||
BenchmarkTimerProtoUnmarshal-8 10000000 235 ns/op 444.92 MB/s
|
||||
BenchmarkMyExtendableProtoUnmarshal-8 2000000 649 ns/op 124.62 MB/s
|
||||
BenchmarkOtherExtenableProtoUnmarshal-8 1000000 1348 ns/op 117.15 MB/s
|
||||
BenchmarkNestedDefinitionProtoUnmarshal-8 2000000 932 ns/op 248.80 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-8 3000000 431 ns/op 275.75 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-8 10000000 219 ns/op 373.17 MB/s
|
||||
BenchmarkNestedScopeProtoUnmarshal-8 2000000 907 ns/op 245.63 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoUnmarshal-8 2000000 663 ns/op 315.15 MB/s
|
||||
BenchmarkCustomContainerProtoUnmarshal-8 5000000 350 ns/op 310.78 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoUnmarshal-8 3000000 483 ns/op 475.48 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoUnmarshal-8 2000000 689 ns/op 303.07 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoUnmarshal-8 500000 2845 ns/op 287.79 MB/s
|
||||
BenchmarkCustomNameNinStructProtoUnmarshal-8 500000 2730 ns/op 351.21 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoUnmarshal-8 2000000 934 ns/op 229.08 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoUnmarshal-8 3000000 475 ns/op 313.63 MB/s
|
||||
BenchmarkCustomNameEnumProtoUnmarshal-8 5000000 271 ns/op 166.03 MB/s
|
||||
BenchmarkNoExtensionsMapProtoUnmarshal-8 5000000 344 ns/op 234.94 MB/s
|
||||
BenchmarkUnrecognizedProtoUnmarshal-8 20000000 86.3 ns/op 521.53 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoUnmarshal-8 3000000 411 ns/op 228.40 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoUnmarshal-8 30000000 43.9 ns/op 113.80 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoUnmarshal-8 5000000 261 ns/op 340.84 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoUnmarshal-8 30000000 43.9 ns/op 113.92 MB/s
|
||||
BenchmarkNodeProtoUnmarshal-8 5000000 312 ns/op 323.19 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoUnmarshal-8 5000000 306 ns/op 257.52 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoUnmarshal-8 5000000 292 ns/op 283.61 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoUnmarshal-8 5000000 307 ns/op 257.00 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoUnmarshal-8 1000000 1057 ns/op 217.49 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoUnmarshal-8 1000000 1043 ns/op 220.36 MB/s
|
||||
BenchmarkProtoTypeProtoUnmarshal-8 10000000 221 ns/op 369.64 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/both 152.331s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/unmarshal.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/unmarshal.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test
|
||||
BenchmarkNidOptNativeProtoUnmarshal-8 2000000 742 ns/op 309.65 MB/s
|
||||
BenchmarkNinOptNativeProtoUnmarshal-8 2000000 892 ns/op 234.06 MB/s
|
||||
BenchmarkNidRepNativeProtoUnmarshal-8 300000 3762 ns/op 217.69 MB/s
|
||||
BenchmarkNinRepNativeProtoUnmarshal-8 500000 3750 ns/op 218.40 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoUnmarshal-8 1000000 2423 ns/op 153.89 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoUnmarshal-8 1000000 2356 ns/op 158.30 MB/s
|
||||
BenchmarkNidOptStructProtoUnmarshal-8 500000 2595 ns/op 326.01 MB/s
|
||||
BenchmarkNinOptStructProtoUnmarshal-8 500000 2679 ns/op 285.91 MB/s
|
||||
BenchmarkNidRepStructProtoUnmarshal-8 200000 7477 ns/op 237.11 MB/s
|
||||
BenchmarkNinRepStructProtoUnmarshal-8 200000 6672 ns/op 265.70 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoUnmarshal-8 1000000 1634 ns/op 295.59 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoUnmarshal-8 1000000 1655 ns/op 276.61 MB/s
|
||||
BenchmarkNidNestedStructProtoUnmarshal-8 100000 16742 ns/op 246.68 MB/s
|
||||
BenchmarkNinNestedStructProtoUnmarshal-8 100000 14573 ns/op 266.92 MB/s
|
||||
BenchmarkNidOptCustomProtoUnmarshal-8 2000000 840 ns/op 84.48 MB/s
|
||||
BenchmarkCustomDashProtoUnmarshal-8 3000000 573 ns/op 142.95 MB/s
|
||||
BenchmarkNinOptCustomProtoUnmarshal-8 2000000 668 ns/op 100.17 MB/s
|
||||
BenchmarkNidRepCustomProtoUnmarshal-8 500000 3945 ns/op 46.12 MB/s
|
||||
BenchmarkNinRepCustomProtoUnmarshal-8 500000 3939 ns/op 46.20 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoUnmarshal-8 5000000 248 ns/op 64.30 MB/s
|
||||
BenchmarkNinOptStructUnionProtoUnmarshal-8 3000000 432 ns/op 145.55 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-8 2000000 767 ns/op 194.07 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoUnmarshal-8 2000000 636 ns/op 122.51 MB/s
|
||||
BenchmarkTreeProtoUnmarshal-8 2000000 649 ns/op 158.50 MB/s
|
||||
BenchmarkOrBranchProtoUnmarshal-8 1000000 1312 ns/op 186.65 MB/s
|
||||
BenchmarkAndBranchProtoUnmarshal-8 1000000 1301 ns/op 188.29 MB/s
|
||||
BenchmarkLeafProtoUnmarshal-8 3000000 490 ns/op 197.62 MB/s
|
||||
BenchmarkDeepTreeProtoUnmarshal-8 1000000 1059 ns/op 136.83 MB/s
|
||||
BenchmarkADeepBranchProtoUnmarshal-8 1000000 1253 ns/op 145.96 MB/s
|
||||
BenchmarkAndDeepBranchProtoUnmarshal-8 1000000 2041 ns/op 162.62 MB/s
|
||||
BenchmarkDeepLeafProtoUnmarshal-8 2000000 894 ns/op 156.51 MB/s
|
||||
BenchmarkNilProtoUnmarshal-8 5000000 362 ns/op 96.48 MB/s
|
||||
BenchmarkNidOptEnumProtoUnmarshal-8 5000000 382 ns/op 96.84 MB/s
|
||||
BenchmarkNinOptEnumProtoUnmarshal-8 3000000 448 ns/op 91.37 MB/s
|
||||
BenchmarkNidRepEnumProtoUnmarshal-8 2000000 796 ns/op 74.10 MB/s
|
||||
BenchmarkNinRepEnumProtoUnmarshal-8 2000000 799 ns/op 73.79 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoUnmarshal-8 3000000 452 ns/op 90.59 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoUnmarshal-8 3000000 446 ns/op 91.74 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-8 3000000 451 ns/op 90.73 MB/s
|
||||
BenchmarkTimerProtoUnmarshal-8 3000000 528 ns/op 198.78 MB/s
|
||||
BenchmarkMyExtendableProtoUnmarshal-8 1000000 1295 ns/op 62.54 MB/s
|
||||
BenchmarkOtherExtenableProtoUnmarshal-8 1000000 2420 ns/op 65.28 MB/s
|
||||
BenchmarkNestedDefinitionProtoUnmarshal-8 1000000 1501 ns/op 154.48 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-8 2000000 861 ns/op 138.09 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-8 3000000 490 ns/op 167.26 MB/s
|
||||
BenchmarkNestedScopeProtoUnmarshal-8 1000000 1469 ns/op 151.78 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoUnmarshal-8 2000000 933 ns/op 223.93 MB/s
|
||||
BenchmarkCustomContainerProtoUnmarshal-8 1000000 1141 ns/op 95.48 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoUnmarshal-8 2000000 771 ns/op 298.02 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoUnmarshal-8 2000000 938 ns/op 222.66 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoUnmarshal-8 500000 3820 ns/op 214.37 MB/s
|
||||
BenchmarkCustomNameNinStructProtoUnmarshal-8 500000 3613 ns/op 265.38 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoUnmarshal-8 300000 4301 ns/op 49.76 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoUnmarshal-8 2000000 772 ns/op 192.86 MB/s
|
||||
BenchmarkCustomNameEnumProtoUnmarshal-8 3000000 569 ns/op 79.04 MB/s
|
||||
BenchmarkNoExtensionsMapProtoUnmarshal-8 2000000 850 ns/op 95.19 MB/s
|
||||
BenchmarkUnrecognizedProtoUnmarshal-8 5000000 269 ns/op 166.93 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoUnmarshal-8 2000000 858 ns/op 109.44 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoUnmarshal-8 10000000 221 ns/op 22.56 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoUnmarshal-8 2000000 605 ns/op 146.89 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoUnmarshal-8 10000000 222 ns/op 22.45 MB/s
|
||||
BenchmarkNodeProtoUnmarshal-8 2000000 664 ns/op 152.10 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoUnmarshal-8 2000000 880 ns/op 89.67 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoUnmarshal-8 2000000 953 ns/op 87.07 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoUnmarshal-8 2000000 893 ns/op 88.46 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoUnmarshal-8 500000 3460 ns/op 66.47 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoUnmarshal-8 500000 3452 ns/op 66.63 MB/s
|
||||
BenchmarkProtoTypeProtoUnmarshal-8 3000000 510 ns/op 160.64 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test 160.971s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/unmarshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/unmarshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/both
|
||||
BenchmarkNidOptNativeProtoUnmarshal-8 3000000 437 ns/op 525.94 MB/s
|
||||
BenchmarkNinOptNativeProtoUnmarshal-8 2000000 648 ns/op 322.37 MB/s
|
||||
BenchmarkNidRepNativeProtoUnmarshal-8 500000 2864 ns/op 285.90 MB/s
|
||||
BenchmarkNinRepNativeProtoUnmarshal-8 500000 2820 ns/op 290.41 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoUnmarshal-8 1000000 1801 ns/op 207.09 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoUnmarshal-8 1000000 1813 ns/op 205.70 MB/s
|
||||
BenchmarkNidOptStructProtoUnmarshal-8 1000000 1839 ns/op 459.88 MB/s
|
||||
BenchmarkNinOptStructProtoUnmarshal-8 1000000 2018 ns/op 379.50 MB/s
|
||||
BenchmarkNidRepStructProtoUnmarshal-8 300000 5149 ns/op 344.29 MB/s
|
||||
BenchmarkNinRepStructProtoUnmarshal-8 300000 5018 ns/op 353.26 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoUnmarshal-8 1000000 1065 ns/op 453.50 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoUnmarshal-8 1000000 1079 ns/op 424.46 MB/s
|
||||
BenchmarkNidNestedStructProtoUnmarshal-8 100000 11788 ns/op 350.34 MB/s
|
||||
BenchmarkNinNestedStructProtoUnmarshal-8 200000 11113 ns/op 350.03 MB/s
|
||||
BenchmarkNidOptCustomProtoUnmarshal-8 10000000 199 ns/op 355.77 MB/s
|
||||
BenchmarkCustomDashProtoUnmarshal-8 10000000 228 ns/op 359.40 MB/s
|
||||
BenchmarkNinOptCustomProtoUnmarshal-8 5000000 246 ns/op 271.79 MB/s
|
||||
BenchmarkNidRepCustomProtoUnmarshal-8 2000000 801 ns/op 227.02 MB/s
|
||||
BenchmarkNinRepCustomProtoUnmarshal-8 2000000 810 ns/op 224.64 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoUnmarshal-8 20000000 80.9 ns/op 197.77 MB/s
|
||||
BenchmarkNinOptStructUnionProtoUnmarshal-8 10000000 201 ns/op 311.92 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-8 3000000 460 ns/op 323.74 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoUnmarshal-8 5000000 318 ns/op 245.16 MB/s
|
||||
BenchmarkTreeProtoUnmarshal-8 5000000 308 ns/op 333.66 MB/s
|
||||
BenchmarkOrBranchProtoUnmarshal-8 2000000 801 ns/op 305.77 MB/s
|
||||
BenchmarkAndBranchProtoUnmarshal-8 2000000 786 ns/op 311.55 MB/s
|
||||
BenchmarkLeafProtoUnmarshal-8 10000000 221 ns/op 437.02 MB/s
|
||||
BenchmarkDeepTreeProtoUnmarshal-8 3000000 564 ns/op 256.77 MB/s
|
||||
BenchmarkADeepBranchProtoUnmarshal-8 2000000 734 ns/op 249.07 MB/s
|
||||
BenchmarkAndDeepBranchProtoUnmarshal-8 1000000 1259 ns/op 263.56 MB/s
|
||||
BenchmarkDeepLeafProtoUnmarshal-8 3000000 473 ns/op 295.86 MB/s
|
||||
BenchmarkNilProtoUnmarshal-8 10000000 138 ns/op 252.17 MB/s
|
||||
BenchmarkNidOptEnumProtoUnmarshal-8 10000000 143 ns/op 258.45 MB/s
|
||||
BenchmarkNinOptEnumProtoUnmarshal-8 10000000 203 ns/op 201.75 MB/s
|
||||
BenchmarkNidRepEnumProtoUnmarshal-8 3000000 461 ns/op 127.85 MB/s
|
||||
BenchmarkNinRepEnumProtoUnmarshal-8 3000000 445 ns/op 132.38 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoUnmarshal-8 10000000 199 ns/op 205.22 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoUnmarshal-8 10000000 199 ns/op 205.47 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-8 10000000 203 ns/op 201.78 MB/s
|
||||
BenchmarkTimerProtoUnmarshal-8 10000000 224 ns/op 468.19 MB/s
|
||||
BenchmarkMyExtendableProtoUnmarshal-8 2000000 653 ns/op 123.97 MB/s
|
||||
BenchmarkOtherExtenableProtoUnmarshal-8 1000000 1349 ns/op 117.08 MB/s
|
||||
BenchmarkNestedDefinitionProtoUnmarshal-8 2000000 936 ns/op 247.70 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-8 3000000 421 ns/op 282.31 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-8 10000000 224 ns/op 364.55 MB/s
|
||||
BenchmarkNestedScopeProtoUnmarshal-8 2000000 918 ns/op 242.79 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoUnmarshal-8 2000000 663 ns/op 315.02 MB/s
|
||||
BenchmarkCustomContainerProtoUnmarshal-8 5000000 360 ns/op 302.50 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoUnmarshal-8 3000000 455 ns/op 504.73 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoUnmarshal-8 2000000 667 ns/op 313.20 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoUnmarshal-8 500000 2908 ns/op 281.59 MB/s
|
||||
BenchmarkCustomNameNinStructProtoUnmarshal-8 500000 2668 ns/op 359.44 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoUnmarshal-8 2000000 926 ns/op 231.07 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoUnmarshal-8 3000000 471 ns/op 316.30 MB/s
|
||||
BenchmarkCustomNameEnumProtoUnmarshal-8 5000000 267 ns/op 168.48 MB/s
|
||||
BenchmarkNoExtensionsMapProtoUnmarshal-8 5000000 341 ns/op 237.47 MB/s
|
||||
BenchmarkUnrecognizedProtoUnmarshal-8 20000000 85.0 ns/op 529.53 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoUnmarshal-8 3000000 408 ns/op 230.38 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoUnmarshal-8 30000000 45.5 ns/op 109.87 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoUnmarshal-8 5000000 261 ns/op 340.78 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoUnmarshal-8 30000000 43.2 ns/op 115.70 MB/s
|
||||
BenchmarkNodeProtoUnmarshal-8 5000000 310 ns/op 325.74 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoUnmarshal-8 5000000 310 ns/op 254.37 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoUnmarshal-8 5000000 294 ns/op 281.53 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoUnmarshal-8 5000000 308 ns/op 256.49 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoUnmarshal-8 1000000 1040 ns/op 221.03 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoUnmarshal-8 1000000 1039 ns/op 221.20 MB/s
|
||||
BenchmarkProtoTypeProtoUnmarshal-8 10000000 220 ns/op 372.18 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/both 153.117s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/unsafe_marshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/unsafe_marshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/unsafeboth
|
||||
BenchmarkNidOptNativeProtoMarshal-8 10000000 235 ns/op 976.65 MB/s
|
||||
BenchmarkNinOptNativeProtoMarshal-8 5000000 265 ns/op 788.37 MB/s
|
||||
BenchmarkNidRepNativeProtoMarshal-8 1000000 1011 ns/op 810.06 MB/s
|
||||
BenchmarkNinRepNativeProtoMarshal-8 1000000 1004 ns/op 815.63 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoMarshal-8 2000000 958 ns/op 389.24 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoMarshal-8 2000000 968 ns/op 385.16 MB/s
|
||||
BenchmarkNidOptStructProtoMarshal-8 2000000 979 ns/op 863.95 MB/s
|
||||
BenchmarkNinOptStructProtoMarshal-8 2000000 946 ns/op 808.91 MB/s
|
||||
BenchmarkNidRepStructProtoMarshal-8 500000 2495 ns/op 710.38 MB/s
|
||||
BenchmarkNinRepStructProtoMarshal-8 500000 2265 ns/op 782.62 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoMarshal-8 3000000 561 ns/op 860.52 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoMarshal-8 3000000 538 ns/op 849.81 MB/s
|
||||
BenchmarkNidNestedStructProtoMarshal-8 200000 7308 ns/op 565.10 MB/s
|
||||
BenchmarkNinNestedStructProtoMarshal-8 200000 6016 ns/op 646.61 MB/s
|
||||
BenchmarkNidOptCustomProtoMarshal-8 20000000 97.3 ns/op 729.87 MB/s
|
||||
BenchmarkCustomDashProtoMarshal-8 20000000 92.5 ns/op 886.05 MB/s
|
||||
BenchmarkNinOptCustomProtoMarshal-8 20000000 97.4 ns/op 687.82 MB/s
|
||||
BenchmarkNidRepCustomProtoMarshal-8 5000000 258 ns/op 705.25 MB/s
|
||||
BenchmarkNinRepCustomProtoMarshal-8 5000000 258 ns/op 704.21 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoMarshal-8 20000000 69.0 ns/op 231.80 MB/s
|
||||
BenchmarkNinOptStructUnionProtoMarshal-8 10000000 138 ns/op 453.62 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoMarshal-8 5000000 251 ns/op 591.44 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoMarshal-8 10000000 208 ns/op 373.73 MB/s
|
||||
BenchmarkTreeProtoMarshal-8 10000000 154 ns/op 664.72 MB/s
|
||||
BenchmarkOrBranchProtoMarshal-8 5000000 343 ns/op 712.72 MB/s
|
||||
BenchmarkAndBranchProtoMarshal-8 5000000 344 ns/op 710.24 MB/s
|
||||
BenchmarkLeafProtoMarshal-8 20000000 117 ns/op 824.42 MB/s
|
||||
BenchmarkDeepTreeProtoMarshal-8 5000000 247 ns/op 585.23 MB/s
|
||||
BenchmarkADeepBranchProtoMarshal-8 5000000 301 ns/op 606.06 MB/s
|
||||
BenchmarkAndDeepBranchProtoMarshal-8 3000000 595 ns/op 557.97 MB/s
|
||||
BenchmarkDeepLeafProtoMarshal-8 10000000 206 ns/op 676.59 MB/s
|
||||
BenchmarkNilProtoMarshal-8 30000000 51.2 ns/op 682.93 MB/s
|
||||
BenchmarkNidOptEnumProtoMarshal-8 20000000 62.0 ns/op 596.44 MB/s
|
||||
BenchmarkNinOptEnumProtoMarshal-8 20000000 78.6 ns/op 521.93 MB/s
|
||||
BenchmarkNidRepEnumProtoMarshal-8 10000000 184 ns/op 320.25 MB/s
|
||||
BenchmarkNinRepEnumProtoMarshal-8 10000000 184 ns/op 319.78 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoMarshal-8 20000000 78.1 ns/op 525.05 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoMarshal-8 20000000 77.6 ns/op 528.30 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoMarshal-8 20000000 79.1 ns/op 518.59 MB/s
|
||||
BenchmarkTimerProtoMarshal-8 20000000 103 ns/op 1011.16 MB/s
|
||||
BenchmarkMyExtendableProtoMarshal-8 3000000 465 ns/op 174.04 MB/s
|
||||
BenchmarkOtherExtenableProtoMarshal-8 2000000 1028 ns/op 153.66 MB/s
|
||||
BenchmarkNestedDefinitionProtoMarshal-8 5000000 283 ns/op 818.76 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoMarshal-8 10000000 141 ns/op 838.57 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoMarshal-8 20000000 94.1 ns/op 871.31 MB/s
|
||||
BenchmarkNestedScopeProtoMarshal-8 5000000 259 ns/op 857.99 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoMarshal-8 5000000 272 ns/op 768.10 MB/s
|
||||
BenchmarkCustomContainerProtoMarshal-8 10000000 141 ns/op 769.72 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoMarshal-8 10000000 237 ns/op 968.65 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoMarshal-8 5000000 290 ns/op 719.58 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoMarshal-8 1000000 1006 ns/op 813.87 MB/s
|
||||
BenchmarkCustomNameNinStructProtoMarshal-8 1000000 1296 ns/op 739.54 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoMarshal-8 5000000 300 ns/op 712.96 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoMarshal-8 5000000 247 ns/op 601.55 MB/s
|
||||
BenchmarkCustomNameEnumProtoMarshal-8 20000000 107 ns/op 417.49 MB/s
|
||||
BenchmarkNoExtensionsMapProtoMarshal-8 20000000 116 ns/op 695.54 MB/s
|
||||
BenchmarkUnrecognizedProtoMarshal-8 20000000 66.8 ns/op 673.51 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoMarshal-8 10000000 171 ns/op 548.84 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoMarshal-8 30000000 46.7 ns/op 107.10 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoMarshal-8 10000000 126 ns/op 700.99 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoMarshal-8 30000000 43.8 ns/op 114.23 MB/s
|
||||
BenchmarkNodeProtoMarshal-8 10000000 119 ns/op 844.78 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoMarshal-8 10000000 123 ns/op 639.73 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoMarshal-8 10000000 126 ns/op 657.86 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoMarshal-8 10000000 123 ns/op 641.02 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoMarshal-8 5000000 386 ns/op 595.49 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoMarshal-8 5000000 382 ns/op 601.83 MB/s
|
||||
BenchmarkProtoTypeProtoMarshal-8 20000000 94.3 ns/op 869.89 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/unsafeboth 147.234s
|
||||
73
vendor/github.com/gogo/protobuf/test/mixbench/unsafe_unmarshaler.txt
generated
vendored
Normal file
73
vendor/github.com/gogo/protobuf/test/mixbench/unsafe_unmarshaler.txt
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
goos: darwin
|
||||
goarch: amd64
|
||||
pkg: github.com/gogo/protobuf/test/combos/unsafeboth
|
||||
BenchmarkNidOptNativeProtoUnmarshal-8 3000000 425 ns/op 540.14 MB/s
|
||||
BenchmarkNinOptNativeProtoUnmarshal-8 2000000 612 ns/op 341.01 MB/s
|
||||
BenchmarkNidRepNativeProtoUnmarshal-8 500000 2884 ns/op 283.98 MB/s
|
||||
BenchmarkNinRepNativeProtoUnmarshal-8 500000 2809 ns/op 291.49 MB/s
|
||||
BenchmarkNidRepPackedNativeProtoUnmarshal-8 1000000 1806 ns/op 206.53 MB/s
|
||||
BenchmarkNinRepPackedNativeProtoUnmarshal-8 1000000 1769 ns/op 210.78 MB/s
|
||||
BenchmarkNidOptStructProtoUnmarshal-8 1000000 1820 ns/op 464.71 MB/s
|
||||
BenchmarkNinOptStructProtoUnmarshal-8 1000000 1932 ns/op 396.30 MB/s
|
||||
BenchmarkNidRepStructProtoUnmarshal-8 300000 5074 ns/op 349.42 MB/s
|
||||
BenchmarkNinRepStructProtoUnmarshal-8 300000 4891 ns/op 362.49 MB/s
|
||||
BenchmarkNidEmbeddedStructProtoUnmarshal-8 1000000 1034 ns/op 466.75 MB/s
|
||||
BenchmarkNinEmbeddedStructProtoUnmarshal-8 1000000 1061 ns/op 431.37 MB/s
|
||||
BenchmarkNidNestedStructProtoUnmarshal-8 200000 11579 ns/op 356.66 MB/s
|
||||
BenchmarkNinNestedStructProtoUnmarshal-8 200000 10862 ns/op 358.12 MB/s
|
||||
BenchmarkNidOptCustomProtoUnmarshal-8 10000000 202 ns/op 350.76 MB/s
|
||||
BenchmarkCustomDashProtoUnmarshal-8 10000000 228 ns/op 358.70 MB/s
|
||||
BenchmarkNinOptCustomProtoUnmarshal-8 5000000 245 ns/op 272.41 MB/s
|
||||
BenchmarkNidRepCustomProtoUnmarshal-8 2000000 810 ns/op 224.66 MB/s
|
||||
BenchmarkNinRepCustomProtoUnmarshal-8 2000000 812 ns/op 224.11 MB/s
|
||||
BenchmarkNinOptNativeUnionProtoUnmarshal-8 20000000 73.2 ns/op 218.58 MB/s
|
||||
BenchmarkNinOptStructUnionProtoUnmarshal-8 10000000 194 ns/op 323.57 MB/s
|
||||
BenchmarkNinEmbeddedStructUnionProtoUnmarshal-8 3000000 459 ns/op 324.42 MB/s
|
||||
BenchmarkNinNestedStructUnionProtoUnmarshal-8 5000000 315 ns/op 247.13 MB/s
|
||||
BenchmarkTreeProtoUnmarshal-8 5000000 307 ns/op 335.37 MB/s
|
||||
BenchmarkOrBranchProtoUnmarshal-8 2000000 782 ns/op 313.01 MB/s
|
||||
BenchmarkAndBranchProtoUnmarshal-8 2000000 776 ns/op 315.38 MB/s
|
||||
BenchmarkLeafProtoUnmarshal-8 10000000 218 ns/op 443.71 MB/s
|
||||
BenchmarkDeepTreeProtoUnmarshal-8 3000000 565 ns/op 256.61 MB/s
|
||||
BenchmarkADeepBranchProtoUnmarshal-8 2000000 734 ns/op 249.27 MB/s
|
||||
BenchmarkAndDeepBranchProtoUnmarshal-8 1000000 1263 ns/op 262.80 MB/s
|
||||
BenchmarkDeepLeafProtoUnmarshal-8 3000000 476 ns/op 294.03 MB/s
|
||||
BenchmarkNilProtoUnmarshal-8 10000000 137 ns/op 254.01 MB/s
|
||||
BenchmarkNidOptEnumProtoUnmarshal-8 10000000 141 ns/op 260.58 MB/s
|
||||
BenchmarkNinOptEnumProtoUnmarshal-8 10000000 200 ns/op 204.30 MB/s
|
||||
BenchmarkNidRepEnumProtoUnmarshal-8 3000000 449 ns/op 131.35 MB/s
|
||||
BenchmarkNinRepEnumProtoUnmarshal-8 3000000 459 ns/op 128.30 MB/s
|
||||
BenchmarkNinOptEnumDefaultProtoUnmarshal-8 10000000 203 ns/op 201.59 MB/s
|
||||
BenchmarkAnotherNinOptEnumProtoUnmarshal-8 10000000 201 ns/op 203.75 MB/s
|
||||
BenchmarkAnotherNinOptEnumDefaultProtoUnmarshal-8 10000000 205 ns/op 199.16 MB/s
|
||||
BenchmarkTimerProtoUnmarshal-8 10000000 223 ns/op 469.62 MB/s
|
||||
BenchmarkMyExtendableProtoUnmarshal-8 2000000 654 ns/op 123.72 MB/s
|
||||
BenchmarkOtherExtenableProtoUnmarshal-8 1000000 1353 ns/op 116.72 MB/s
|
||||
BenchmarkNestedDefinitionProtoUnmarshal-8 2000000 919 ns/op 252.43 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessageProtoUnmarshal-8 3000000 427 ns/op 278.50 MB/s
|
||||
BenchmarkNestedDefinition_NestedMessage_NestedNestedMsgProtoUnmarshal-8 10000000 216 ns/op 378.01 MB/s
|
||||
BenchmarkNestedScopeProtoUnmarshal-8 2000000 893 ns/op 249.72 MB/s
|
||||
BenchmarkNinOptNativeDefaultProtoUnmarshal-8 2000000 671 ns/op 311.36 MB/s
|
||||
BenchmarkCustomContainerProtoUnmarshal-8 5000000 351 ns/op 310.13 MB/s
|
||||
BenchmarkCustomNameNidOptNativeProtoUnmarshal-8 3000000 446 ns/op 514.92 MB/s
|
||||
BenchmarkCustomNameNinOptNativeProtoUnmarshal-8 2000000 652 ns/op 320.55 MB/s
|
||||
BenchmarkCustomNameNinRepNativeProtoUnmarshal-8 500000 2841 ns/op 288.23 MB/s
|
||||
BenchmarkCustomNameNinStructProtoUnmarshal-8 500000 2639 ns/op 363.30 MB/s
|
||||
BenchmarkCustomNameCustomTypeProtoUnmarshal-8 2000000 919 ns/op 232.73 MB/s
|
||||
BenchmarkCustomNameNinEmbeddedStructUnionProtoUnmarshal-8 3000000 461 ns/op 322.60 MB/s
|
||||
BenchmarkCustomNameEnumProtoUnmarshal-8 5000000 270 ns/op 166.20 MB/s
|
||||
BenchmarkNoExtensionsMapProtoUnmarshal-8 5000000 353 ns/op 228.99 MB/s
|
||||
BenchmarkUnrecognizedProtoUnmarshal-8 20000000 85.7 ns/op 525.21 MB/s
|
||||
BenchmarkUnrecognizedWithInnerProtoUnmarshal-8 3000000 415 ns/op 226.40 MB/s
|
||||
BenchmarkUnrecognizedWithInner_InnerProtoUnmarshal-8 30000000 42.6 ns/op 117.47 MB/s
|
||||
BenchmarkUnrecognizedWithEmbedProtoUnmarshal-8 5000000 259 ns/op 343.44 MB/s
|
||||
BenchmarkUnrecognizedWithEmbed_EmbeddedProtoUnmarshal-8 30000000 43.2 ns/op 115.84 MB/s
|
||||
BenchmarkNodeProtoUnmarshal-8 5000000 306 ns/op 329.03 MB/s
|
||||
BenchmarkNonByteCustomTypeProtoUnmarshal-8 5000000 308 ns/op 256.11 MB/s
|
||||
BenchmarkNidOptNonByteCustomTypeProtoUnmarshal-8 5000000 292 ns/op 284.10 MB/s
|
||||
BenchmarkNinOptNonByteCustomTypeProtoUnmarshal-8 5000000 306 ns/op 258.01 MB/s
|
||||
BenchmarkNidRepNonByteCustomTypeProtoUnmarshal-8 1000000 1049 ns/op 219.19 MB/s
|
||||
BenchmarkNinRepNonByteCustomTypeProtoUnmarshal-8 1000000 1046 ns/op 219.68 MB/s
|
||||
BenchmarkProtoTypeProtoUnmarshal-8 10000000 221 ns/op 370.99 MB/s
|
||||
PASS
|
||||
ok github.com/gogo/protobuf/test/combos/unsafeboth 151.728s
|
||||
Reference in New Issue
Block a user