BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

Json.NET Claims Significant Performance Improvements over Other .NET Serializers

| by Jonathan Allen Follow 131 Followers on Jan 06, 2010. Estimated reading time: less than one minute |

JSon.NET is claiming to offer better serialization and deserialization performance than any of the major serializers in .NET including BinaryFormatter. It even performs well against the remarkably fast DataContractSerizalier.

It is no shock that someone was able to beat the somewhat troubled WCF JSON implementation. Not only is it the only library in the benchmark that was slower at serialization than deserialization, its serialization actually takes 6 times longer than its deserialization. The real shocker from the benchmarks is that the BinaryFormatter is relatively slow. Most people would generally assume binary formats are faster, but in these benchmarks both JSON.NET and WCF’s DataContractSerializer are nearly twice as fast at deserialization and easily three times faster at serialization.

The benchmark results are available on James Newton-King’s blog. Json.NET is being released on CodePlex under the MIT License.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Still lacks the ease of using attribute based Json conversion by Binoj Antony

The price you pay for the performance is to do the serialization manually, the default attribute based Json conversion is more elegant readable and less-effort-taking any day when implementing WCF services.
Also what if we want to support Json plus the default SOAP/XML, here again we have to manually handle this condition.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT