JS Alias

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
No alias
var o = {
 foo: {
  one: 'two',
  three: 'four',
  five: 'six'
 }
};
var a = o.foo.one;
var b = o.foo.three;
var c = o.foo.five;
ready
Alias
var o = {
 foo: {
  one: 'two',
  three: 'four',
  five: 'six'
 }
};
var foo = o.foo;
var a = foo.one;
var b = foo.three;
var c = foo.five;
ready

Revisions

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