Files
node/tools
Murat Kirazkaya 8175dc3c05 tools: add lint rule for unread benchmark n
If a benchmark declares `n` in its configs, main() must read it.
nodejs/node#59872 renamed a config key from `num` to `n` but left
`{ num: n }` in main(), so `n` resolved to undefined and the
benchmark silently reported near-zero results until #62084 fixed
it.

The rule also found `async_hooks/async-resource-vs-destroy.js`,
which has declared `n: [1e6]` since it was added but never read
it. Remove the unused key.

Refs: https://github.com/nodejs/node/pull/59872
Refs: https://github.com/nodejs/node/pull/62084
Signed-off-by: Murat Kirazkaya <groophylifefor@gmail.com>
Assisted-by: Claude Code
PR-URL: https://github.com/nodejs/node/pull/66807
Refs: https://github.com/nodejs/performance/issues/187
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2026-10-19 15:51:08 +00:00
..
2026-10-01 15:37:03 +00:00
2018-10-24 17:19:28 -04:00
2026-10-07 10:56:09 +00:00
2024-10-15 13:59:49 +00:00
2025-11-22 16:37:32 +00:00
2024-10-09 06:42:16 +00:00
2026-09-11 13:15:27 -04:00
2024-10-09 06:42:16 +00:00
2026-10-07 18:54:57 +00:00
2024-10-15 13:59:49 +00:00
2025-01-29 21:55:05 +00:00
2026-10-18 07:18:16 +00:00
2019-01-21 20:16:14 +01:00