Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSONKit benchmarks

Tags:

ios

jsonkit

I pulled the code from http://www.bonto.ch/blog/2011/12/08/json-libraries-for-ios-comparison-updated/ and tested it on my local machine.

I was surprised by the results and NSJSonSerialization gave much better performance than JSONKit.

Has NSJSonSerialization really overtaken JSONKit in terms of speed or did I do something wrong?

twitter_timeline_json.png

twitter_timeline.json

repeat_json.png

repeat.json

random_json.png

random.json

like image 971
Sam Khawase Avatar asked Apr 25 '13 15:04

Sam Khawase


1 Answers

You have not done anything wrong.

Things have changed in iOS 6. Apple have greatly improved the performance of NSJSONSerialization. When using iOS 6 and up, it is the fastest.

JSONKit has also not been updated in a year. It is falling behind.

like image 100
Bo A Avatar answered Sep 19 '22 18:09

Bo A