Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?

Test LargeStructTest

Running cold

ZeroFormatter
   Serialize                      45 ms
   Deserialize                    40 ms
   Size                           32 bytes
   Total                          85 ms
ZeroFormatterWithPooling
   Serialize                      30 ms
   Deserialize                    41 ms
   Size                           32 bytes
   Total                          71 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      232 ms
   Deserialize                    139 ms
   Size                           35 bytes
   Total                          371 ms
Wire - KnownTypes
   Serialize                      238 ms
   Deserialize                    163 ms
   Size                           35 bytes
   Total                          401 ms
Wire - Default
   Serialize                      294 ms
   Deserialize                    326 ms
   Size                           83 bytes
   Total                          620 ms
Wire - Version Tolerant
   Serialize                      373 ms
   Deserialize                    651 ms
   Size                           128 bytes
   Total                          1024 ms
Wire - Object Identity
   Serialize                      392 ms
   Deserialize                    371 ms
   Size                           83 bytes
   Total                          763 ms
NFX Slim Serializer
   Serialize                      2103 ms
   Deserialize                    2321 ms
   Size                           135 bytes
   Total                          4424 ms
NFX Slim Serializer - KnownTypes
   Serialize                      434 ms
   Deserialize                    515 ms
   Size                           33 bytes
   Total                          949 ms
ServiceStack.Text
   Serialize                      174 ms
    FAILURE
Net Serializer
   Serialize                      202 ms
   Deserialize                    111 ms
   Size                           23 bytes
   Total                          313 ms
Protobuf.NET
   Serialize                      317 ms
   Deserialize                    389 ms
   Size                           24 bytes
   Total                          706 ms
Json.NET
   Serialize                      2326 ms
   Deserialize                    7617 ms
   Size                           140 bytes
   Total                          9943 ms
Binary formatter
   Serialize                      3242 ms
   Deserialize                    3607 ms
   Size                           205 bytes
   Total                          6849 ms

Running hot

ZeroFormatter
   Serialize                      35 ms
   Deserialize                    35 ms
   Size                           32 bytes
   Total                          70 ms
ZeroFormatterWithPooling
   Serialize                      27 ms
   Deserialize                    34 ms
   Size                           32 bytes
   Total                          61 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      197 ms
   Deserialize                    127 ms
   Size                           35 bytes
   Total                          324 ms
Wire - KnownTypes
   Serialize                      210 ms
   Deserialize                    145 ms
   Size                           35 bytes
   Total                          355 ms
Wire - Default
   Serialize                      260 ms
   Deserialize                    313 ms
   Size                           83 bytes
   Total                          573 ms
Wire - Version Tolerant
   Serialize                      352 ms
   Deserialize                    629 ms
   Size                           128 bytes
   Total                          981 ms
Wire - Object Identity
   Serialize                      360 ms
   Deserialize                    332 ms
   Size                           83 bytes
   Total                          692 ms
NFX Slim Serializer
   Serialize                      2069 ms
   Deserialize                    2169 ms
   Size                           135 bytes
   Total                          4238 ms
NFX Slim Serializer - KnownTypes
   Serialize                      436 ms
   Deserialize                    512 ms
   Size                           33 bytes
   Total                          948 ms
ServiceStack.Text
   Serialize                      174 ms
    FAILURE
Net Serializer
   Serialize                      196 ms
   Deserialize                    107 ms
   Size                           23 bytes
   Total                          303 ms
Protobuf.NET
   Serialize                      299 ms
   Deserialize                    394 ms
   Size                           24 bytes
   Total                          693 ms
Json.NET
   Serialize                      2229 ms
   Deserialize                    7335 ms
   Size                           140 bytes
   Total                          9564 ms
Binary formatter
   Serialize                      3299 ms
   Deserialize                    3748 ms
   Size                           205 bytes
   Total                          7047 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 27 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 34 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 61 ms
  • Smallest Payload: Net Serializer - 23 bytes

Test GuidArrayTest

Running cold

ZeroFormatter
   Serialize                      24 ms
   Deserialize                    19 ms
   Size                           1604 bytes
   Total                          43 ms
ZeroFormatterWithPooling
   Serialize                      20 ms
   Deserialize                    18 ms
   Size                           1604 bytes
   Total                          38 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      100 ms
   Deserialize                    226 ms
   Size                           1606 bytes
   Total                          326 ms
Wire - KnownTypes
   Serialize                      105 ms
   Deserialize                    192 ms
   Size                           1606 bytes
   Total                          297 ms
Wire - Default
   Serialize                      99 ms
   Deserialize                    206 ms
   Size                           1606 bytes
   Total                          305 ms
Wire - Version Tolerant
   Serialize                      127 ms
   Deserialize                    197 ms
   Size                           1606 bytes
   Total                          324 ms
Wire - Object Identity
   Serialize                      103 ms
   Deserialize                    193 ms
   Size                           1606 bytes
   Total                          296 ms
NFX Slim Serializer
   Serialize                      584 ms
   Deserialize                    411 ms
   Size                           2000 bytes
   Total                          995 ms
NFX Slim Serializer - KnownTypes
   Serialize                      419 ms
   Deserialize                    306 ms
   Size                           1820 bytes
   Total                          725 ms
ServiceStack.Text
   Serialize                      690 ms
   Deserialize                    2668 ms
   Size                           3301 bytes
   Total                          3358 ms
Net Serializer
   Serialize                      277 ms
   Deserialize                    201 ms
   Size                           1864 bytes
   Total                          478 ms
Protobuf.NET
   Serialize                      918 ms
   Deserialize                    798 ms
   Size                           2000 bytes
   Total                          1716 ms
Json.NET
   Serialize                      861 ms
   Deserialize                    2238 ms
   Size                           3947 bytes
   Total                          3099 ms
Binary formatter
   Serialize                      8945 ms
   Deserialize                    9599 ms
   Size                           2612 bytes
   Total                          18544 ms

Running hot

ZeroFormatter
   Serialize                      22 ms
   Deserialize                    16 ms
   Size                           1604 bytes
   Total                          38 ms
ZeroFormatterWithPooling
   Serialize                      19 ms
   Deserialize                    16 ms
   Size                           1604 bytes
   Total                          35 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      97 ms
   Deserialize                    203 ms
   Size                           1606 bytes
   Total                          300 ms
Wire - KnownTypes
   Serialize                      110 ms
   Deserialize                    198 ms
   Size                           1606 bytes
   Total                          308 ms
Wire - Default
   Serialize                      104 ms
   Deserialize                    195 ms
   Size                           1606 bytes
   Total                          299 ms
Wire - Version Tolerant
   Serialize                      99 ms
   Deserialize                    192 ms
   Size                           1606 bytes
   Total                          291 ms
Wire - Object Identity
   Serialize                      110 ms
   Deserialize                    196 ms
   Size                           1606 bytes
   Total                          306 ms
NFX Slim Serializer
   Serialize                      509 ms
   Deserialize                    382 ms
   Size                           2000 bytes
   Total                          891 ms
NFX Slim Serializer - KnownTypes
   Serialize                      425 ms
   Deserialize                    306 ms
   Size                           1820 bytes
   Total                          731 ms
ServiceStack.Text
   Serialize                      685 ms
   Deserialize                    2653 ms
   Size                           3301 bytes
   Total                          3338 ms
Net Serializer
   Serialize                      283 ms
   Deserialize                    206 ms
   Size                           1864 bytes
   Total                          489 ms
Protobuf.NET
   Serialize                      931 ms
   Deserialize                    802 ms
   Size                           2000 bytes
   Total                          1733 ms
Json.NET
   Serialize                      865 ms
   Deserialize                    2255 ms
   Size                           3947 bytes
   Total                          3120 ms
Binary formatter
   Serialize                      8968 ms
   Deserialize                    9464 ms
   Size                           2612 bytes
   Total                          18432 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 19 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 16 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 36 ms
  • Smallest Payload: ZeroFormatter - 1604 bytes

Test GuidTest

Running cold

ZeroFormatter
   Serialize                      14 ms
   Deserialize                    9 ms
   Size                           16 bytes
   Total                          23 ms
ZeroFormatterWithPooling
   Serialize                      8 ms
   Deserialize                    8 ms
   Size                           16 bytes
   Total                          16 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      121 ms
   Deserialize                    46 ms
   Size                           17 bytes
   Total                          167 ms
Wire - KnownTypes
   Serialize                      134 ms
   Deserialize                    60 ms
   Size                           17 bytes
   Total                          194 ms
Wire - Default
   Serialize                      137 ms
   Deserialize                    58 ms
   Size                           17 bytes
   Total                          195 ms
Wire - Version Tolerant
   Serialize                      136 ms
   Deserialize                    80 ms
   Size                           17 bytes
   Total                          216 ms
Wire - Object Identity
   Serialize                      174 ms
   Deserialize                    78 ms
   Size                           17 bytes
   Total                          252 ms
NFX Slim Serializer
   Serialize                      1985 ms
   Deserialize                    1863 ms
   Size                           118 bytes
   Total                          3848 ms
NFX Slim Serializer - KnownTypes
   Serialize                      294 ms
   Deserialize                    265 ms
   Size                           29 bytes
   Total                          559 ms
ServiceStack.Text
   Serialize                      187 ms
   Deserialize                    504 ms
   Size                           32 bytes
   Total                          691 ms
Net Serializer
   Serialize                      180 ms
   Deserialize                    82 ms
   Size                           19 bytes
   Total                          262 ms
Protobuf.NET
   Serialize                      878 ms
   Deserialize                    798 ms
   Size                           20 bytes
   Total                          1676 ms
Json.NET
   Serialize                      441 ms
   Deserialize                    485 ms
   Size                           38 bytes
   Total                          926 ms
Binary formatter
   Serialize                      5167 ms
   Deserialize                    5892 ms
   Size                           110 bytes
   Total                          11059 ms

Running hot

ZeroFormatter
   Serialize                      16 ms
   Deserialize                    18 ms
   Size                           16 bytes
   Total                          34 ms
ZeroFormatterWithPooling
   Serialize                      10 ms
   Deserialize                    9 ms
   Size                           16 bytes
   Total                          19 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      141 ms
   Deserialize                    45 ms
   Size                           17 bytes
   Total                          186 ms
Wire - KnownTypes
   Serialize                      134 ms
   Deserialize                    57 ms
   Size                           17 bytes
   Total                          191 ms
Wire - Default
   Serialize                      138 ms
   Deserialize                    57 ms
   Size                           17 bytes
   Total                          195 ms
Wire - Version Tolerant
   Serialize                      136 ms
   Deserialize                    77 ms
   Size                           17 bytes
   Total                          213 ms
Wire - Object Identity
   Serialize                      156 ms
   Deserialize                    74 ms
   Size                           17 bytes
   Total                          230 ms
NFX Slim Serializer
   Serialize                      1845 ms
   Deserialize                    1825 ms
   Size                           118 bytes
   Total                          3670 ms
NFX Slim Serializer - KnownTypes
   Serialize                      287 ms
   Deserialize                    260 ms
   Size                           29 bytes
   Total                          547 ms
ServiceStack.Text
   Serialize                      185 ms
   Deserialize                    503 ms
   Size                           32 bytes
   Total                          688 ms
Net Serializer
   Serialize                      178 ms
   Deserialize                    82 ms
   Size                           19 bytes
   Total                          260 ms
Protobuf.NET
   Serialize                      873 ms
   Deserialize                    794 ms
   Size                           20 bytes
   Total                          1667 ms
Json.NET
   Serialize                      445 ms
   Deserialize                    489 ms
   Size                           38 bytes
   Total                          934 ms
Binary formatter
   Serialize                      5246 ms
   Deserialize                    5941 ms
   Size                           110 bytes
   Total                          11187 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 10 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 9 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 20 ms
  • Smallest Payload: ZeroFormatter - 16 bytes

Test TypicalPersonArrayTest

Running cold

ZeroFormatter
   Serialize                      88 ms
   Deserialize                    77 ms
   Size                           52204 bytes
   Total                          165 ms
ZeroFormatterWithPooling
   Serialize                      76 ms
   Deserialize                    74 ms
   Size                           52204 bytes
   Total                          150 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      173 ms
   Deserialize                    171 ms
   Size                           30067 bytes
   Total                          344 ms
Wire - KnownTypes
   Serialize                      172 ms
   Deserialize                    182 ms
   Size                           30067 bytes
   Total                          354 ms
Wire - Default
   Serialize                      171 ms
   Deserialize                    168 ms
   Size                           30067 bytes
   Total                          339 ms
Wire - Version Tolerant
   Serialize                      203 ms
   Deserialize                    207 ms
   Size                           32705 bytes
   Total                          410 ms
Wire - Object Identity
   Serialize                      223 ms
   Deserialize                    182 ms
   Size                           29869 bytes
   Total                          405 ms
NFX Slim Serializer
   Serialize                      180 ms
   Deserialize                    190 ms
   Size                           29738 bytes
   Total                          370 ms
NFX Slim Serializer - KnownTypes
   Serialize                      161 ms
   Deserialize                    185 ms
   Size                           29412 bytes
   Total                          346 ms
ServiceStack.Text
   Serialize                      884 ms
   Deserialize                    879 ms
   Size                           47751 bytes
   Total                          1763 ms
Net Serializer
   Serialize                      150 ms
   Deserialize                    171 ms
   Size                           29052 bytes
   Total                          321 ms
Protobuf.NET
   Serialize                      144 ms
   Deserialize                    217 ms
   Size                           28750 bytes
   Total                          361 ms
Json.NET
   Serialize                      915 ms
   Deserialize                    1324 ms
   Size                           87479 bytes
   Total                          2239 ms
Binary formatter
   Serialize                      1358 ms
   Deserialize                    785 ms
   Size                           31638 bytes
   Total                          2143 ms

Running hot

ZeroFormatter
   Serialize                      87 ms
   Deserialize                    77 ms
   Size                           52204 bytes
   Total                          164 ms
ZeroFormatterWithPooling
   Serialize                      76 ms
   Deserialize                    75 ms
   Size                           52204 bytes
   Total                          151 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      171 ms
   Deserialize                    166 ms
   Size                           30067 bytes
   Total                          337 ms
Wire - KnownTypes
   Serialize                      169 ms
   Deserialize                    166 ms
   Size                           30067 bytes
   Total                          335 ms
Wire - Default
   Serialize                      173 ms
   Deserialize                    166 ms
   Size                           30067 bytes
   Total                          339 ms
Wire - Version Tolerant
   Serialize                      200 ms
   Deserialize                    206 ms
   Size                           32705 bytes
   Total                          406 ms
Wire - Object Identity
   Serialize                      175 ms
   Deserialize                    167 ms
   Size                           29869 bytes
   Total                          342 ms
NFX Slim Serializer
   Serialize                      171 ms
   Deserialize                    182 ms
   Size                           29738 bytes
   Total                          353 ms
NFX Slim Serializer - KnownTypes
   Serialize                      162 ms
   Deserialize                    179 ms
   Size                           29412 bytes
   Total                          341 ms
ServiceStack.Text
   Serialize                      884 ms
   Deserialize                    815 ms
   Size                           47751 bytes
   Total                          1699 ms
Net Serializer
   Serialize                      148 ms
   Deserialize                    165 ms
   Size                           29052 bytes
   Total                          313 ms
Protobuf.NET
   Serialize                      145 ms
   Deserialize                    210 ms
   Size                           28750 bytes
   Total                          355 ms
Json.NET
   Serialize                      923 ms
   Deserialize                    1348 ms
   Size                           87479 bytes
   Total                          2271 ms
Binary formatter
   Serialize                      1349 ms
   Deserialize                    779 ms
   Size                           31638 bytes
   Total                          2128 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 76 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 75 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 152 ms
  • Smallest Payload: Protobuf.NET - 28750 bytes

Test TypicalPersonTest

Running cold

ZeroFormatter
   Serialize                      89 ms
   Deserialize                    67 ms
   Size                           478 bytes
   Total                          156 ms
ZeroFormatterWithPooling
   Serialize                      71 ms
   Deserialize                    69 ms
   Size                           478 bytes
   Total                          140 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      173 ms
   Deserialize                    148 ms
   Size                           305 bytes
   Total                          321 ms
Wire - KnownTypes
   Serialize                      166 ms
   Deserialize                    169 ms
   Size                           305 bytes
   Total                          335 ms
Wire - Default
   Serialize                      181 ms
   Deserialize                    183 ms
   Size                           359 bytes
   Total                          364 ms
Wire - Version Tolerant
   Serialize                      221 ms
   Deserialize                    392 ms
   Size                           1361 bytes
   Total                          613 ms
Wire - Object Identity
   Serialize                      231 ms
   Deserialize                    206 ms
   Size                           359 bytes
   Total                          437 ms
NFX Slim Serializer
   Serialize                      318 ms
   Deserialize                    353 ms
   Size                           362 bytes
   Total                          671 ms
NFX Slim Serializer - KnownTypes
   Serialize                      138 ms
   Deserialize                    172 ms
   Size                           254 bytes
   Total                          310 ms
ServiceStack.Text
   Serialize                      780 ms
   Deserialize                    597 ms
   Size                           419 bytes
   Total                          1377 ms
Net Serializer
   Serialize                      136 ms
   Deserialize                    150 ms
   Size                           245 bytes
   Total                          286 ms
Protobuf.NET
   Serialize                      111 ms
   Deserialize                    187 ms
   Size                           235 bytes
   Total                          298 ms
Json.NET
   Serialize                      737 ms
   Deserialize                    1378 ms
   Size                           834 bytes
   Total                          2115 ms
Binary formatter
   Serialize                      2443 ms
   Deserialize                    1804 ms
   Size                           2567 bytes
   Total                          4247 ms

Running hot

ZeroFormatter
   Serialize                      106 ms
   Deserialize                    71 ms
   Size                           478 bytes
   Total                          177 ms
ZeroFormatterWithPooling
   Serialize                      71 ms
   Deserialize                    68 ms
   Size                           478 bytes
   Total                          139 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      159 ms
   Deserialize                    149 ms
   Size                           305 bytes
   Total                          308 ms
Wire - KnownTypes
   Serialize                      166 ms
   Deserialize                    160 ms
   Size                           305 bytes
   Total                          326 ms
Wire - Default
   Serialize                      175 ms
   Deserialize                    180 ms
   Size                           359 bytes
   Total                          355 ms
Wire - Version Tolerant
   Serialize                      217 ms
   Deserialize                    362 ms
   Size                           1361 bytes
   Total                          579 ms
Wire - Object Identity
   Serialize                      185 ms
   Deserialize                    190 ms
   Size                           359 bytes
   Total                          375 ms
NFX Slim Serializer
   Serialize                      314 ms
   Deserialize                    348 ms
   Size                           362 bytes
   Total                          662 ms
NFX Slim Serializer - KnownTypes
   Serialize                      138 ms
   Deserialize                    172 ms
   Size                           254 bytes
   Total                          310 ms
ServiceStack.Text
   Serialize                      789 ms
   Deserialize                    598 ms
   Size                           419 bytes
   Total                          1387 ms
Net Serializer
   Serialize                      135 ms
   Deserialize                    148 ms
   Size                           245 bytes
   Total                          283 ms
Protobuf.NET
   Serialize                      113 ms
   Deserialize                    191 ms
   Size                           235 bytes
   Total                          304 ms
Json.NET
   Serialize                      732 ms
   Deserialize                    1377 ms
   Size                           834 bytes
   Total                          2109 ms
Binary formatter
   Serialize                      2451 ms
   Deserialize                    1810 ms
   Size                           2567 bytes
   Total                          4261 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 71 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 68 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 140 ms
  • Smallest Payload: Protobuf.NET - 235 bytes

Test TypicalMessageArrayTest

Running cold

ZeroFormatter
   Serialize                      99 ms
   Deserialize                    102 ms
   Size                           6504 bytes
   Total                          201 ms
ZeroFormatterWithPooling
   Serialize                      79 ms
   Deserialize                    102 ms
   Size                           6504 bytes
   Total                          181 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      190 ms
   Deserialize                    208 ms
   Size                           3911 bytes
   Total                          398 ms
Wire - KnownTypes
   Serialize                      195 ms
   Deserialize                    220 ms
   Size                           3911 bytes
   Total                          415 ms
Wire - Default
   Serialize                      201 ms
   Deserialize                    209 ms
   Size                           3911 bytes
   Total                          410 ms
Wire - Version Tolerant
   Serialize                      287 ms
   Deserialize                    378 ms
   Size                           4430 bytes
   Total                          665 ms
Wire - Object Identity
   Serialize                      269 ms
   Deserialize                    223 ms
   Size                           3911 bytes
   Total                          492 ms
NFX Slim Serializer
   Serialize                      650 ms
   Deserialize                    493 ms
   Size                           4479 bytes
   Total                          1143 ms
NFX Slim Serializer - KnownTypes
   Serialize                      592 ms
   Deserialize                    466 ms
   Size                           4162 bytes
   Total                          1058 ms
ServiceStack.Text
   Serialize                      1378 ms
   Deserialize                    2587 ms
   Size                           11101 bytes
   Total                          3965 ms
Net Serializer
   Serialize                      272 ms
   Deserialize                    301 ms
   Size                           3866 bytes
   Total                          573 ms
Protobuf.NET
   Serialize                      591 ms
   Deserialize                    664 ms
   Size                           4400 bytes
   Total                          1255 ms
Json.NET
   Serialize                      1895 ms
   Deserialize                    3188 ms
   Size                           18975 bytes
   Total                          5083 ms
Binary formatter
   Serialize                      4547 ms
   Deserialize                    4563 ms
   Size                           5981 bytes
   Total                          9110 ms

Running hot

ZeroFormatter
   Serialize                      97 ms
   Deserialize                    103 ms
   Size                           6504 bytes
   Total                          200 ms
ZeroFormatterWithPooling
   Serialize                      79 ms
   Deserialize                    101 ms
   Size                           6504 bytes
   Total                          180 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      190 ms
   Deserialize                    210 ms
   Size                           3911 bytes
   Total                          400 ms
Wire - KnownTypes
   Serialize                      189 ms
   Deserialize                    212 ms
   Size                           3911 bytes
   Total                          401 ms
Wire - Default
   Serialize                      192 ms
   Deserialize                    211 ms
   Size                           3911 bytes
   Total                          403 ms
Wire - Version Tolerant
   Serialize                      287 ms
   Deserialize                    297 ms
   Size                           4430 bytes
   Total                          584 ms
Wire - Object Identity
   Serialize                      257 ms
   Deserialize                    222 ms
   Size                           3911 bytes
   Total                          479 ms
NFX Slim Serializer
   Serialize                      642 ms
   Deserialize                    496 ms
   Size                           4479 bytes
   Total                          1138 ms
NFX Slim Serializer - KnownTypes
   Serialize                      591 ms
   Deserialize                    464 ms
   Size                           4162 bytes
   Total                          1055 ms
ServiceStack.Text
   Serialize                      1347 ms
   Deserialize                    2560 ms
   Size                           11101 bytes
   Total                          3907 ms
Net Serializer
   Serialize                      271 ms
   Deserialize                    305 ms
   Size                           3866 bytes
   Total                          576 ms
Protobuf.NET
   Serialize                      586 ms
   Deserialize                    661 ms
   Size                           4400 bytes
   Total                          1247 ms
Json.NET
   Serialize                      1883 ms
   Deserialize                    3188 ms
   Size                           18975 bytes
   Total                          5071 ms
Binary formatter
   Serialize                      4581 ms
   Deserialize                    4585 ms
   Size                           5981 bytes
   Total                          9166 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 79 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 101 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 180 ms
  • Smallest Payload: Net Serializer - 3866 bytes

Test TypicalMessageTest

Running cold

Greg Young Custom Serializer
   Serialize                      285 ms
   Deserialize                    292 ms
   Size                           43 bytes
   Total                          577 ms
ZeroFormatter
   Serialize                      176 ms
   Deserialize                    116 ms
   Size                           65 bytes
   Total                          292 ms
ZeroFormatterWithPooling
   Serialize                      99 ms
   Deserialize                    129 ms
   Size                           65 bytes
   Total                          228 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      231 ms
   Deserialize                    177 ms
   Size                           38 bytes
   Total                          408 ms
Wire - KnownTypes
   Serialize                      247 ms
   Deserialize                    202 ms
   Size                           38 bytes
   Total                          449 ms
Wire - Default
   Serialize                      356 ms
   Deserialize                    369 ms
   Size                           89 bytes
   Total                          725 ms
Wire - Version Tolerant
   Serialize                      394 ms
   Deserialize                    702 ms
   Size                           211 bytes
   Total                          1096 ms
Wire - Object Identity
   Serialize                      358 ms
   Deserialize                    385 ms
   Size                           89 bytes
   Total                          743 ms
NFX Slim Serializer
   Serialize                      2116 ms
   Deserialize                    2307 ms
   Size                           152 bytes
   Total                          4423 ms
NFX Slim Serializer - KnownTypes
   Serialize                      494 ms
   Deserialize                    579 ms
   Size                           47 bytes
   Total                          1073 ms
ServiceStack.Text
   Serialize                      1406 ms
   Deserialize                    2128 ms
   Size                           110 bytes
   Total                          3534 ms
Net Serializer
   Serialize                      333 ms
   Deserialize                    300 ms
   Size                           39 bytes
   Total                          633 ms
Protobuf.NET
   Serialize                      531 ms
   Deserialize                    682 ms
   Size                           42 bytes
   Total                          1213 ms
Json.NET
   Serialize                      1951 ms
   Deserialize                    3511 ms
   Size                           188 bytes
   Total                          5462 ms
Binary formatter
   Serialize                      8406 ms
   Deserialize                    9519 ms
   Size                           378 bytes
   Total                          17925 ms

Running hot

Greg Young Custom Serializer
   Serialize                      281 ms
   Deserialize                    289 ms
   Size                           43 bytes
   Total                          570 ms
ZeroFormatter
   Serialize                      176 ms
   Deserialize                    116 ms
   Size                           65 bytes
   Total                          292 ms
ZeroFormatterWithPooling
   Serialize                      98 ms
   Deserialize                    114 ms
   Size                           65 bytes
   Total                          212 ms
Wire - KnownTypes + Reuse Sessions
   Serialize                      231 ms
   Deserialize                    172 ms
   Size                           38 bytes
   Total                          403 ms
Wire - KnownTypes
   Serialize                      244 ms
   Deserialize                    186 ms
   Size                           38 bytes
   Total                          430 ms
Wire - Default
   Serialize                      290 ms
   Deserialize                    360 ms
   Size                           89 bytes
   Total                          650 ms
Wire - Version Tolerant
   Serialize                      393 ms
   Deserialize                    700 ms
   Size                           211 bytes
   Total                          1093 ms
Wire - Object Identity
   Serialize                      354 ms
   Deserialize                    384 ms
   Size                           89 bytes
   Total                          738 ms
NFX Slim Serializer
   Serialize                      2097 ms
   Deserialize                    2278 ms
   Size                           152 bytes
   Total                          4375 ms
NFX Slim Serializer - KnownTypes
   Serialize                      488 ms
   Deserialize                    554 ms
   Size                           47 bytes
   Total                          1042 ms
ServiceStack.Text
   Serialize                      1372 ms
   Deserialize                    2106 ms
   Size                           110 bytes
   Total                          3478 ms
Net Serializer
   Serialize                      331 ms
   Deserialize                    300 ms
   Size                           39 bytes
   Total                          631 ms
Protobuf.NET
   Serialize                      528 ms
   Deserialize                    686 ms
   Size                           42 bytes
   Total                          1214 ms
Json.NET
   Serialize                      1940 ms
   Deserialize                    3540 ms
   Size                           188 bytes
   Total                          5480 ms
Binary formatter
   Serialize                      8419 ms
   Deserialize                    9486 ms
   Size                           378 bytes
   Total                          17905 ms
  • Fastest Serializer: ZeroFormatterWithPooling - 98 ms
  • Fastest Deserializer: ZeroFormatterWithPooling - 114 ms
  • Fastest Roundtrip: ZeroFormatterWithPooling - 212 ms
  • Smallest Payload: Wire - KnownTypes + Reuse Sessions - 38 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment