Skip to content

Commit 92639df

Browse files
committed
refactor: fix lint
1 parent 4d2b6cb commit 92639df

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

e2e/plugin-js-benchmark-e2e/tests/suite-runners.e2e.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ describe('suite-runners', () => {
2222
['fast-operation', () => 1 + 1],
2323
[
2424
'slow-operation',
25-
() => {
26-
let total = 0;
27-
for (let i = 0; i < 50000; i++) {
28-
total += Math.sqrt(Math.log(i + 1) * Math.sin(i));
29-
}
30-
return total;
31-
},
25+
() => Array.from({ length: 50_000 }, (_, i) =>
26+
Math.sqrt(Math.log(i + 1) * Math.sin(i))
27+
).reduce((total, value) => total + value, 0),
3228
],
3329
];
3430

0 commit comments

Comments
 (0)