Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
RafaelGSS committed Aug 22, 2025
commit a1c7131b6b9bec0b0ac72dba87dfc3745fe09828
2 changes: 1 addition & 1 deletion benchmark/util/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const common = require('../common');

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

Expand Down
Loading