Binary and Json benchmarks updated

Yan Cui

I help clients go faster for less using serverless technologies.

This article is brought to you by

MongoDB 8.0 is here to change the game. Faster reads and inserts, and brand-new vector search to support modern AI-powered apps.

Learn More

DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlikely to be rep­re­sen­ta­tive of your use cases and nei­ther is any­body else’s bench­mark numbers.

You can use the sim­ple test har­ness I cre­ated and see these exam­ple code to bench­mark against your par­tic­u­lar payload.

Binary

Only FsPickler and Json.Net was updated for this benchmark and there are no significant changes in performance in either update.

image

image

 

JSON

Quite a few of the JSON serializers had been updated since the last update :

  • fastJSON
  • FsPickler
  • Jil
  • MongoDB Driver
  • NetJSON
  • Json.Net
  • ServiceStack.Text
  • System.Text.Json

Of the updates, System.Text.Json has seen the biggest change in performance, nearly halved its deserialization time.

image

image

*protobuf-net is in this list purely as a benchmark to show how the tested JSON serializers compare to one of the fastest binary serializer in .Net.

Whenever you’re ready, here are 3 ways I can help you:

  1. Production-Ready Serverless: Join 20+ AWS Heroes & Community Builders and 1000+ other students in levelling up your serverless game. This is your one-stop shop for quickly levelling up your serverless skills.
  2. I help clients launch product ideas, improve their development processes and upskill their teams. If you’d like to work together, then let’s get in touch.
  3. Join my community on Discord, ask questions, and join the discussion on all things AWS and Serverless.

8 thoughts on “Binary and Json benchmarks updated”

  1. theburningmonk

    Great, I’ll do another update in a week or two, give the others a chance to catch up ;-)

  2. That’s some through benchmark tests :-) I find the format hard to digest though, a lot of details and a lot to read. Not sure if you agree, but I personally prefer charts as a way to display benchmark results.

  3. Pingback: Binary and Json benchmarks updated | theburningmonk.com

Leave a Comment

Your email address will not be published. Required fields are marked *