Skip to content

Commit

Permalink
fixup! benchmark: split Buffer.byteLength benchmark
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
joyeecheung and ronag committed Feb 19, 2023
1 parent 4cbf217 commit 955cc52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/buffers/buffer-bytelength-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, {
});

function main({ n, len }) {
let data = Buffer.alloc(len * 16, 'a');
const data = Buffer.alloc(len * 16, 'a');
const expected = Buffer.byteLength(data, 'buffer');
let changed = false;
bench.start();
Expand Down

0 comments on commit 955cc52

Please sign in to comment.