JsonML2 vs Builder

JavaScript performance comparison

Test case created by Carlos Killpack

Preparation code

<script src="http://jsonml.org/JsonML2.js"></script>
<script src="http://github.com/indieinvader/htmlbuilder/raw/master/builder.js"></script>
<script>
  window.jsonMLList = ["ul", ["li",
  {
   "style": "color:red"
  }, "First Item"],
   ["li",
   {
    "title": "Some hover text.",
    "style": "color:green"
   }, "Second Item"],
   ["li", ["span",
   {
    "class": "code-example-third"
   }, "Third"], " Item"]
  ];
</script>
    

Preparation code output

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
JsonML2
JsonML.parse(jsonMLList);
pending…
Builder
builder.build(jsonMLList);
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.

0 Comments