diff --git a/benchmark/assert/deepequal-typedarrays.js b/benchmark/assert/deepequal-typedarrays.js index f748a6042fd1ad..8e8cc4b083a73e 100644 --- a/benchmark/assert/deepequal-typedarrays.js +++ b/benchmark/assert/deepequal-typedarrays.js @@ -33,7 +33,8 @@ function main(conf) { const actual = new clazz(len); const expected = new clazz(len); const expectedWrong = Buffer.alloc(len); - expectedWrong[100] = 123; + const wrongIndex = Math.floor(len / 2); + expectedWrong[wrongIndex] = 123; var i; switch (conf.method) {