asdfadsfdsaf

Benchmark created on


Setup

const x = Array(4096).fill(0).map((_, i) => i);

Test runner

Ready to run.

Testing in
TestOps/sec
Foobar
let y = 0;

if (x[4095]?.toString() === '4095') {
	y += x[4095];
}
ready
Foobar2
let y = 0;

if (x.at(4095)?.toString() === '4095') {
	y += x.at(4095);
}
ready

Revisions

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