JsObject as Dict

Benchmark created by willnguyen1312 on


Setup

var a = {
   key: ""
  }
  var d = "d";

Test runner

Ready to run.

Testing in
TestOps/sec
First
var in1 = a.hasOwnProperty(d);
ready
Second
var in2 = !!a[d];
ready

Revisions

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

  • Revision 1: published by willnguyen1312 on