const vs var part 2

JavaScript performance comparison

Test case created by Josh

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
const
const foo = 6;
const bar = 3;

foo + bar;
pending…
var
var foo = 6;
var bar = 3;

foo + bar;
pending…

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

Compare results of other browsers

0 comments

Add a comment