JSONKit基准测试 [英] JSONKit benchmarks

查看:123
本文介绍了JSONKit基准测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从
中提取代码 http://www.bonto.ch/blog/2011/12/08/json-libraries-for-ios-comparison-updated/ 并在我的本地计算机上对其进行了测试。

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.

我对结果感到惊讶, NSJSonSerialization 提供了比 JSONKit 更好的性能。

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

NSJSonSerialization在速度方面是否真的超过了JSONKit,还是我做错了什么?

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

twitter_timeline.json

repeat.json

random.json

推荐答案

你没有做错任何事。

iOS 6的情况发生了变化。 code> NSJSONSerialization 。当使用iOS 6及更高版本时,它是最快的。

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在一年内也没有更新。它落后了。

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

这篇关于JSONKit基准测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆