JSON vs XML performance (update 2)

Thanks to Artur who pointed out an issue with my JSON/XML test page. From that advice I was also able to eliminate some odd behavior in the performance times. So I did the test again and had some small changes, but essentially the same outcome: JSON is only slightly faster (if at all) on Internet Explorer, and IE blows Firefox out of the water on overall performance (suprising!). Can anyone give me some performance times for Safari?

  JSON XML
Internet Explorer 6.0 (on XP) 143.7 ms 147.1 ms
Firefox 1.5 (on XP) 478.2 ms 476.7 ms
Opera 9 (on XP) 242.2 ms 248.5 ms

Average of 20 requests for each data type.

2 Responses to “JSON vs XML performance (update 2)”

  1. volcore Says:

    Safari on a Macbook:

    JSON: 207 ms
    XML: 207 ms

    Firefox on a Macbook:

    JSON: 215 ms
    XML: 215 ms

    Opera on a Macbook:

    JSON: 207 ms
    XML: 207 ms

    The values deviate a little if executed several times, but posted values should be the mean values. The point is: the performance is absolutely equal.

  2. David Says:

    Have you made those test with a FF free of any add-on ? I mean, there are big differences between your time on FF and those of Volcore.

    You should specify these time with IE (in safe mode) and FF (in safe mode) also , no ? If you use many add-on parsing the JS (firebug, error console, etc.), it may have an impact on the performance?