From 557164c52ad4dcf62f1f0e754f81c4e7609bbdb9 Mon Sep 17 00:00:00 2001 From: RajeshKumar11 Date: Wed, 25 Feb 2026 09:07:28 +0530 Subject: [PATCH] benchmark: add large buffer sizes to buffer-creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The existing benchmark only covered sizes up to 8192 bytes. Sizes in the 10 KiB–204 KiB range show significant performance regression in Node.js v24 compared to v20 (see #61967). Add those sizes to make the regression reproducible and trackable via CI benchmarks. For large-size runs, override the default n via the CLI: node benchmark/buffers/buffer-creation.js \ type=fast-allocUnsafe len=204800 n=10000 Refs: https://github.com/nodejs/node/issues/61967 --- benchmark/buffers/buffer-creation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/buffers/buffer-creation.js b/benchmark/buffers/buffer-creation.js index 9612c6e9008983..9eb3511d39752b 100644 --- a/benchmark/buffers/buffer-creation.js +++ b/benchmark/buffers/buffer-creation.js @@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, { 'fast-allocUnsafe', 'slow-allocUnsafe', ], - len: [10, 1024, 4096, 8192], + len: [10, 1024, 4096, 8192, 10 * 1024, 51 * 1024, 102 * 1024, 204 * 1024], n: [6e5], });