dakoki

Benchmark created by black on


Preparation HTML

<script>
  function fn1(json) {
   return eval('(' + json + ')');
  }

  var str = JSON.stringify({
   someArray: ['foo', 'bar', 123],
   someObject: {
    foo: 'bar',
    embedded: {
     eleet: 1337
    }
   },
   someString: '"Hi there!"',
   someNumber: 123,
   someBoolean: true
  });
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
1
fn1( str );
ready
2
var tmp = fn1( str );
tmp();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by black on