Test case details

Preparation Code

Test cases

Test #1

const foo = new Array(100); for (let i = 0; i < foo.length; i++) { const bar = foo.length; }

Test #2

const foo = new Array(100); const fooLength = foo.length; for (let i = 0; i < foo.length; i++) { const bar = fooLength; }

Test #3

const foo = new Array(1_000); for (let i = 0; i < foo.length; i++) { const bar = foo.length; }

Test #4

const foo = new Array(1_000); const fooLength = foo.length; for (let i = 0; i < foo.length; i++) { const bar = fooLength; }

Test #5

const foo = new Array(10_000); for (let i = 0; i < foo.length; i++) { const bar = foo.length; }

Test #6

const foo = new Array(10_000); const fooLength = foo.length; for (let i = 0; i < foo.length; i++) { const bar = fooLength; }

Test #7

const foo = new Array(100_000); for (let i = 0; i < foo.length; i++) { const bar = foo.length; }

Test #8

const foo = new Array(100_000); const fooLength = foo.length; for (let i = 0; i < foo.length; i++) { const bar = fooLength; }

Test #9

const foo = new Array(1_000_000); for (let i = 0; i < foo.length; i++) { const bar = foo.length; }

Test #10

const foo = new Array(1_000_000); const fooLength = foo.length; for (let i = 0; i < foo.length; i++) { const bar = fooLength; }