unsafe_marshaler.txt 3.6 KB
Newer Older
Jeromy's avatar
Jeromy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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