Array allocation reuse

Benchmark created on


Setup

let toReuse = [0];

Test runner

Ready to run.

Testing in
TestOps/sec
Allocate one 1-element array per iteration
let local = [0];
local[0]++;
ready
Reuse allocation
toReuse[0] = 0;
toReuse[0]++;
ready

Revisions

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