Benchmarks

Here are some of the per­for­mance bench­marks I’ve col­lect­ed per­son­al­ly, feel free to ref­er­ence them, but do keep in mind that they should be tak­en at face val­ue only, and as a rule of thumb you should be bench­mark­ing against your actu­al data and use case.

Dis­claimer : The bench­marks shown here are most­ly cre­at­ed with sim­ple POCOs, and may not be rep­re­sen­ta­tive of your par­tic­u­lar use case.

 

Binary Serializers

image[12]

image[9]

 

JSON Serializers

image[18]

image[15]

 

SortedDictionary vs Dictionary vs Map vs Array

image

More info here.

 

Cost of throwing exceptions

image

image

More info here.

 

HashSet vs List vs Dictionary

image

image

image

More info here.