Variables-in-arrays (v2)

Revision 2 of this 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] = 0;
myVars[1] = 0;
myVars[2] = 0;
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.