what's faster on iPhone? XML pList or JSON? what's faster on iPhone? XML pList or JSON? json json

what's faster on iPhone? XML pList or JSON?


A co-worker and I did some rudimentary benchmarks recently to test which was faster for an application we were writing. We tested this JSON framework, and the NSXML parser as well as a TreeNode parser we found in an Objective-C book. Here is the note I sent to the other developers on our team:

The benchmark tested how each library handled getting the filename and pathof 100 assets, 100 times each (for a total count of 10,000 runs per library).The results are below:Method    Average(s)    Total(s)TreeNode  0.307475      30.747493NSXML     0.483778      48.377843JSON      0.233179      23.317870 


It depends on the data that is delivered and the way it is parsed, but they should both be similar in speed. You should just choose the one that is easier for you to develop a parser and then fine tune the parser.