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.
Binary Serializers



Serializers Tested
protobuf-net v2.0.0.480
MsgPack v0.1.4298.15470
More info here.
JSON Serializers


Serializers Tested
Json.Net v4.5.10
ServiceStack.Text v3.9.28
DataContractJsonSerializer
SimpleJson
fastJson v1.9.6
JayRock v0.9.12915
JsonFx v2.0.1209.2802
MongoDB Driver v1.6.1
More info here.
SortedDictionary vs Dictionary vs Map vs Array

More info here.
Cost of throwing exceptions


More info here.
HashSet vs List vs Dictionary



More info here.




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: http://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: http://theburningmonk.com/2011/08/performance-test-json-serializers/
hi Yan,
it’s not clear on the pictures which ones are the best, the tall ones or the small ones, you haven’t explained in the text either, although most lazy ppl (me) won’t read the anyway
omu,u’d better use standard serializer,json serializer and list,if u are that lazy.
Thanks to Yan,
Now i wonder how quick is our custom serializer )
[…] Benchmarks […]
[…] are some more .NET related performance benchmarks, also using the ratio comparison method. This entry was posted in Uncategorized by Jack Fox. […]
[…] Benchmarks […]
[…] Benchmarks […]
[…] Benchmarks […]