Variables-in-arrays

Benchmark created on


Setup

let myVars = [0, 1, 2];

Test runner

Ready to run.

Testing in
TestOps/sec
Local variables
let a = 0;
let b = 1;
let c = 2;

a++;
b--;
c*=2;
ready
Allocate array and reuse
myVars[0]++;
myVars[1]--;
myVars[2]*=2;
ready

Revisions

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