var or not

Benchmark created by Matthew Taylor on


Description

Testing whether var affects performance

Test runner

Ready to run.

Testing in
TestOps/sec
lots o vars
var i = 0;
var j = 0;
var foo = 'foo';
var bar = 'bar';
var seven = new Number(7);
ready
one var
var i = 0,
    j = 0,
    foo = 'foo',
    bar = 'bar',
    seven = new Number(7);
ready

Revisions

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

  • Revision 1: published by Matthew Taylor on