Skip to content

Instantly share code, notes, and snippets.

@neuecc
Last active November 13, 2016 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuecc/9d13d3a882181ead09b3440a64dc5a35 to your computer and use it in GitHub Desktop.
Save neuecc/9d13d3a882181ead09b3440a64dc5a35 to your computer and use it in GitHub Desktop.
Warming-up
ZeroFormatter
ZeroFormatter
ZeroFormatter
ZeroFormatter
ZeroFormatter
ZeroFormatter
Wire
Wire
Wire
Wire
Wire
Wire
Small Object(int,string,string,enum) 10000 Iteration
ZeroFormatter
Serialize 1.6578 ms
Deserialize 1.2304 ms
ReSerialize 0.4851 ms
Binary Size 50.00 B
Wire
Wire 3.7406 ms
Deserialize 6.4605 ms
ReSerialize 3.7958 ms
Binary Size 119.00 B
Large Array(SmallObject[1000]) 10000 Iteration
ZeroFormatter
Serialize 957.8036 ms
Deserialize 0.7907 ms
ReSerialize 38.4184 ms
Binary Size 52.74 KB
Wire
Wire 2935.6759 ms
Deserialize 3381.1586 ms
ReSerialize 2857.0995 ms
Binary Size 25.54 KB
Additional Benchmarks
Int32(1) 10000 Iteration
ZeroFormatter
Serialize 0.1177 ms
Deserialize 0.0487 ms
ReSerialize 0.1177 ms
Binary Size 4.00 B
Wire
Wire 1.2094 ms
Deserialize 0.385 ms
ReSerialize 1.1118 ms
Binary Size 5.00 B
Vector3(float, float, float) 10000 Iteration
ZeroFormatter
Serialize 0.2769 ms
Deserialize 0.1504 ms
ReSerialize 0.2818 ms
Binary Size 12.00 B
Wire
Wire 2.0919 ms
Deserialize 2.7815 ms
ReSerialize 1.9708 ms
Binary Size 64.00 B
HtmlString(309081bytes) 10000 Iteration
ZeroFormatter
Serialize 3914.8137 ms
Deserialize 3294.8861 ms
ReSerialize 3927.5261 ms
Binary Size 301.84 KB
Wire
Wire 4778.6569 ms
Deserialize 4175.0379 ms
ReSerialize 4775.6002 ms
Binary Size 301.84 KB
Vector3[100] 10000 Iteration
ZeroFormatter
Serialize 20.0538 ms
Deserialize 0.6389 ms
ReSerialize 1.1821 ms
Binary Size 1.18 KB
Wire
Wire 116.8231 ms
Deserialize 156.191 ms
ReSerialize 117.2904 ms
Binary Size 1.62 KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment