MS Bond benchmark updated

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 unlike­ly to be rep­re­sen­ta­tive of your use cas­es and nei­ther is any­body else’s bench­mark num­bers.

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 pay­load.

 

I recent­ly added MS Bond to my bench­mark and found some inter­est­ing num­bers, which prompt­ed a ques­tion on their repo.

Adam Sapek explained that the slow seri­al­iza­tion speed I was see­ing was down to the default buffer size being 64KB which is not suit­able for the pay­load I was test­ing with.

Adjust­ing the buffer size to 256 bytes result­ing in some pret­ty amaz­ing result:

image

image

Fastest seri­al­iza­tion & dese­ri­al­iza­tion, and small­est pay­load.

Wow.

 

Have a look at the per­for­mance tun­ing guide, there’s quite a few tweaks you can do to improve per­for­mance fur­ther but it’ll depend on your pay­load.