Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Benchmarks of various JSON frameworks on iOS

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Classes
Octocat-spinner-32 JSONBenchmarks.xcodeproj
Octocat-spinner-32 Other Sources
Octocat-spinner-32 Resources
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Readme.markdown
Readme.markdown

iOS JSON Benchmarks

This is the code I used to write my post about JSON benchmarks and my updated post.

There is basic UI for this app. Pretty charts might be cool in the future though. View the log for detailed results.

Results Summary

Last updated 11/03/2011

Added console logging of serialized data sizes

Added benchmarks for Apple Binary Plist, Apple XML Plist

Added benchmarks with large dictionary/array

Added basic UI for benchmark configuration

Last updated 10/15/2010

The frameworks ranked reading in this order: JSONKit, YAJL, Apple JSON, JSON Framework, and TouchJSON.

Writing ranked in this order: JSONKit, JSON Framework, Apple JSON, YAJL, and TouchJSON.

For detailed time results, run the app on a device.

Building

You will need iOS 4.0 or greater to build the application since it uses blocks. You will also need to get the submodules with the following command:

$ git submodule update --init

Then simply open the project and build normally.

Thanks

Huge thanks to Stig Brautaset for improving benchmarking and keeping JSON Framework up to date. Thanks to Jonathan Wight for keeping TouchJSON up to date.

Something went wrong with that request. Please try again.