Variable Dec Test

Benchmark created by Andre on


Description

To test perfornamce impact of different variable declaration practices.

Test runner

Ready to run.

Testing in
TestOps/sec
Seperate
var a = 1;
var b = 2;
var c = 3;
var d = 4;
var e = 5;
var f = 6;
ready
Combined
var a = 1,
b = 2,
c = 3,
d = 4,
e = 5,
f = 6;
ready
Loop
for (var i = 0; i <= 100; i++) {
var a = i;
}
ready

Revisions

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

  • Revision 1: published by Andre on