object-notation vs constructor

Benchmark created by Arun on


Test runner

Ready to run.

Testing in
TestOps/sec
object notation
var foo = {
  a: 1,
  b: 'test',
  c: false
};
ready
constructor
var foo = new function() {
    this.a = 1;
    this.b = 'test';
    this.c = false;
  }
ready

Revisions

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