mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
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 https://github.com/nodejs/performance/issues/186 this benchmark takes one minute to conclude a single run. This should fix it. PR-URL: https://github.com/nodejs/node/pull/59588 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This commit is contained in:
parent
f86b652bc8
commit
62c62056ca
|
|
@ -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'],
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user