Benchmarks

Here are some of the per­for­mance bench­marks I’ve col­lected per­son­ally, feel free to ref­er­ence them, but do keep in mind that they should be taken at face value only, and as a rule of thumb you should be bench­mark­ing against your actual data and use case.

The bench­marks shown here are mostly cre­ated with sim­ple POCOs, and may not be rep­re­sen­ta­tive of your par­tic­u­lar use case.

Binary Seri­al­iz­ers

spacer

spacer

spacer

Seri­al­iz­ers Tested

Bina­ry­For­mat­ter

protobuf-net v2.0.0.480

Msg­Pack v0.1.4298.15470

Mes­sage­Shark

More info here.

JSON Seri­al­iz­ers

spacer

spacer

Seri­al­iz­ers Tested

Json.Net v4.5.5

ServiceStack.Text v3.7.8

Dat­a­Con­trac­tJ­son­Se­ri­al­izer

JavaScript­Se­ri­al­izer

Sim­ple­J­son

fastJ­son v1.9.6

Jay­Rock v0.9.12915

Sorted­Dic­tionary vs Dic­tio­nary vs Map vs Array

spacer

More info here.

Cost of throw­ing exceptions

spacer

spacer

More info here.

Hash­Set vs List vs Dictionary

spacer

spacer

spacer

More info here.

Tweet
January 26, 2012 | 4 Comments »
spacer

4 Responses to “Benchmarks”

  1. spacer Daniel says:
    March 10, 2012 at 8:10 pm

    Hi,

    Both JSON.Net and Ser­viceS­tack has got­ten new releases. Any plans on updating?

    //Daniel

  2. Ranting is good for you « Daniel Wertheim says:
    March 11, 2012 at 8:29 pm

    […] and fea­ture rich. SisoDb, on the other hand relies on ServiceStack.Text. Com­pare bench­marks here: theburningmonk.com/benchmarks/ These stats com­pares the v4.07 release of JSON.Net and as of now there’s a v4.08 release and […]

  3. spacer Eric Hexter says:
    April 27, 2012 at 4:18 pm

    Could you explain what the mea­sure­ments of the json tests rep­re­sent? What are the mea­sure­ments of the seri­al­iza­tion and dese­ri­al­iza­tion columns? I assume it is the total time taken to per­form the oper­a­tion on a batch num­ber of poco objects? Is that cor­rect ? Thanks, Eric

  4. spacer theburningmonk says:
    April 27, 2012 at 6:23 pm

    Eric — those are aver­age times in mil­lisec­onds, for infor­ma­tion about the test itself, check out: theburningmonk.com/2011/08/performance-test-json-serializers/

Leave a Reply

Click here to cancel reply.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.