Skip to content

Commit 8ebd4f4

Browse files
RafaelGSStargos
authored andcommitted
benchmark: calibrate length of util.diff
500 + 1000 already cover the curve. 2000 doesn’t add new qualitative insight — it just extends the same curve further down (another ~3–4× slowdown). According to nodejs/performance#186 this benchmark takes one minute to conclude a single run. This should fix it. PR-URL: #59588 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
1 parent dfd4962 commit 8ebd4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/util/diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const common = require('../common');
55

66
const bench = common.createBenchmark(main, {
77
n: [1e3],
8-
length: [1e3, 2e3],
8+
length: [500, 1000],
99
scenario: ['identical', 'small-diff', 'medium-diff', 'large-diff'],
1010
});
1111

0 commit comments

Comments
 (0)