Here are some of the performance benchmarks I’ve collected personally, feel free to reference them, but do keep in mind that they should be taken at face value only, and as a rule of thumb you should be benchmarking against your actual data and use case.
The benchmarks shown here are mostly created with simple POCOs, and may not be representative of your particular use case.
Serializers Tested
BinaryFormatter
protobuf-net v2.0.0.480
MsgPack v0.1.4298.15470
MessageShark
More info here.
Serializers Tested
Json.Net v4.5.5
ServiceStack.Text v3.7.8
DataContractJsonSerializer
JavaScriptSerializer
SimpleJson
fastJson v1.9.6
JayRock v0.9.12915
More info here.
More info here.
More info here.
4 Responses to “Benchmarks”
Hi,
Both JSON.Net and ServiceStack has gotten new releases. Any plans on updating?
//Daniel
[…] and feature rich. SisoDb, on the other hand relies on ServiceStack.Text. Compare benchmarks here: theburningmonk.com/benchmarks/ These stats compares the v4.07 release of JSON.Net and as of now there’s a v4.08 release and […]
Could you explain what the measurements of the json tests represent? What are the measurements of the serialization and deserialization columns? I assume it is the total time taken to perform the operation on a batch number of poco objects? Is that correct ? Thanks, Eric
Eric — those are average times in milliseconds, for information about the test itself, check out: theburningmonk.com/2011/08/performance-test-json-serializers/