JSONH

JavaScript performance comparison

Revision 3 of this test case created by WebReflection

Info

10 objects rather than 100 or 5000

JSONH is an Homogeneous Collections Compressor which aim is to pack/unpack over HTTP requests.

Please read the related post to know more.

Preparation code

<script>
  var StaticJSONP = {
      notify: function(uid, dummyData) {
        window.dummyData = dummyData;
      }
    };
  "JSON" in this || document.write('<','script src="http://www.3site.eu/examples/json.hpack/test/json2.js">','<','/script>');
  document.write([
      '<','script src="http://www.3site.eu/examples/json.hpack/test/dummy10.js">','<','/script>',
      '<','script src="http://www.3site.eu/examples/json.hpack/test/JSONH.js">','<','/script>',
      '<','script src="http://www.3site.eu/examples/json.hpack/test/JSONHF.js">','<','/script>'
  ].join(""));
</script>

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
JSON.stringify
window.JSONresult = JSON.stringify(dummyData);
pending…
JSONH.stringify
window.JSONHresult = JSONH.stringify(dummyData);
pending…
JSONH(Flat).stringify
window.JSONHFresult = JSONHF.stringify(dummyData);
pending…
JSON.parse
window.JSONparsed = JSON.parse(JSONresult);
pending…
JSONH.parse
window.JSONHparsed = JSONH.parse(JSONHresult);
pending…
JSONH(Flat).parse
window.JSONHFparsed = JSONHF.parse(JSONHFresult);
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