See also: the Eval Test
Test your browser's native JSON object. JSON data grabbed from http://ejohn.org/apps/jsonvxml2/json-test/1600.js
This research was inspired by John Resig's post Native JSON Support is Required.
Firefox 3.5 has javascript tracing enabled and the typical test results will show a much slower first pass with subsequent results being much, much faster. It should never be assumed that the user will be getting the exact same data back like this test shows, so the slower performance should be expected.
Internet Explorer 8's Eval test appears to be almost as fast as the JSON test and their eval code's execution is pretty fast already. However, the JSON.parse() code appears to be much safer to use and is thus preferable.
| # | Start | End | Milliseconds |
|---|---|---|---|
| # | Start | End | Milliseconds |