Var vs Vars

Benchmark created by Vuly on


Description

Is specifying var each time a performance hit or is it merely stylistic?

Test runner

Ready to run.

Testing in
TestOps/sec
Var multiple
var a = {
  'a': 'b'
};
var b = ['a'];
var c = 1;
ready
Var once
var a = {
  'a': 'b'
},
    b = ['a'],
    c = 1;
ready

Revisions

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