JSONH
JavaScript performance comparison
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.
| Test | Ops/sec | |
|---|---|---|
JSON.stringify |
|
pending… |
JSONH.stringify |
|
pending… |
JSONH(Flat).stringify |
|
pending… |
JSON.parse |
|
pending… |
JSONH.parse |
|
pending… |
JSONH(Flat).parse |
|
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:
- Revision 1: published by WebReflection
- Revision 2: published by WebReflection
- Revision 3: published by WebReflection
- Revision 4: published
- Revision 5: published
- Revision 6: published
0 comments