jquery json

JavaScript performance comparison

Revision 3 of this test case created

Info

jquery.json.toJSON()

Preparation code

<script src="http://www.x-non.com/json/jquery-1.9.1.min.js"></script>
<script
src="http://www.x-non.com/json/jquery.json-2.4.min.js"></script>
<script>
Benchmark.prototype.setup = function() {
    var value = {
        kitcambridge: "Kit",
        contributors: {
                jdalton: "John-David",
                mathias:"Mathias"
        },
        list: [1,2,3],
        number: 5,
        date: "2012-04-25T14:08:36.879Z",
        bln: true,
        nil: null
    };
};
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jquery.json

var a = $.toJSON(value);
pending…


 
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment