diff --git a/benchmark/crypto/timingSafeEqual.js b/benchmark/crypto/timingSafeEqual.js index 475807dba4e..bd8962a3bdf 100644 --- a/benchmark/crypto/timingSafeEqual.js +++ b/benchmark/crypto/timingSafeEqual.js @@ -7,10 +7,14 @@ const { randomBytes, timingSafeEqual } = require('node:crypto'); const bench = common.createBenchmark(main, { n: [1e5], bufferSize: [10, 100, 200, 2_100, 22_023], +}, { + test: { bufferSize: 256 }, }); function main({ n, bufferSize }) { const bufs = [randomBytes(bufferSize), randomBytes(bufferSize)]; + // Ensure the buffers differ even if the random bytes are identical. + bufs[1][0] = bufs[0][0] ^ 1; bench.start(); let count = 0; for (let i = 0; i < n; i++) { diff --git a/test/benchmark/benchmark.status b/test/benchmark/benchmark.status index ea666f58a73..322a7191025 100644 --- a/test/benchmark/benchmark.status +++ b/test/benchmark/benchmark.status @@ -6,9 +6,6 @@ prefix benchmark [true] # This section applies to all platforms -# https://github.com/nodejs/node/issues/52690 -test-benchmark-crypto: PASS, FLAKY - [$system==win32] [$system==linux]