현재 프로젝트에서 JSONKit (https://github.com/johnezang/JSONKit/) 을 사용하고 있는데, 그 이유를 찾아봤다.
그 이유는 간단했다. 가장 빠르다!
링크의 wiki에 가보면, ( https://github.com/johnezang/JSONKit/wiki ) 다른 내용보다, Performance 라고 하는 카테로그만 소개 되어 있다. ㅎㅎ
그중, 성능 비교한 내용이 있어 공유하고자 한다.
( https://github.com/johnezang/JSONKit/ )
xguru 님도 추천하셨네요~ ( http://twitter.com/#!/xguru/status/97660535541215232 )
뭐, 사용해볼만한 충분한 이유가 되지 않을까요? ^^
그 이유는 간단했다. 가장 빠르다!
링크의 wiki에 가보면, ( https://github.com/johnezang/JSONKit/wiki ) 다른 내용보다, Performance 라고 하는 카테로그만 소개 되어 있다. ㅎㅎ
그중, 성능 비교한 내용이 있어 공유하고자 한다.
( https://github.com/johnezang/JSONKit/ )
JSONKit
JSONKit is dual licensed under either the terms of the BSD License, or alternatively under the terms of the Apache License, Version 2.0.
Copyright © 2011, John Engelhart.
A Very High Performance Objective-C JSON Library
| Parsing | Serializing |
23% Faster than Binary .plist ! |
549% Faster than Binary .plist ! |
- Benchmarking was performed on a MacBook Pro with a 2.66GHz Core 2.
- All JSON libraries were compiled with
gcc-4.2 -DNS_BLOCK_ASSERTIONS -O3 -arch x86_64. - Timing results are the average of 1,000 iterations of the user + system time reported by
getrusage. - The JSON used was
twitter_public_timeline.jsonfrom samsoffes / json-benchmarks. - Since the
.plistformat does not support serializingNSNull, thenullvalues in the original JSON were changed to"null". - The experimental branch contains the
gzipcompression changes.- JSONKit automagically links to
libz.dylibon the fly at run time– no manual linking required. - Parsing / deserializing will automagically decompress a buffer if it detects a
gzipsignature header. - You can compress /
gzipthe serialized JSON by passingJKSerializeOptionCompressto-JSONDataWithOptions:error:.
- JSONKit automagically links to
JSON versus PLIST, the Ultimate Showdown benchmarks the common JSON libraries and compares them to Apples .plist format.
xguru 님도 추천하셨네요~ ( http://twitter.com/#!/xguru/status/97660535541215232 )
Retweeted by hoo0 and 25 others
뭐, 사용해볼만한 충분한 이유가 되지 않을까요? ^^
'mobile > ios' 카테고리의 다른 글
| NSString 을 UTF-8로 encode / decode 하기 (0) | 2011/09/30 |
|---|---|
| [ios4 이상] Photo Library 에서 데이터 가져오기 (0) | 2011/09/22 |
| JSONKit... 만약 정말 빠른 파서를 찾는다면... (0) | 2011/09/21 |
| UITapGestureRecognizer singleTap 과 doubleTap 구분하기 (0) | 2011/09/08 |
| UITableView Scroll 최상단으로 이동하기. (0) | 2011/05/12 |
| (원문 & 한글) 앱스토어 리뷰가이드 라인 2010.09.XX (0) | 2010/09/16 |




댓글을 달아 주세요