mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
buffer: use native copy impl
PR-URL: https://github.com/nodejs/node/pull/54087 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Daniel Lemire <daniel@lemire.me>
This commit is contained in:
@@ -5,12 +5,6 @@ const bench = common.createBenchmark(main, {
|
||||
bytes: [0, 8, 128, 32 * 1024],
|
||||
partial: ['true', 'false'],
|
||||
n: [6e6],
|
||||
}, {
|
||||
combinationFilter: (p) => {
|
||||
return (p.partial === 'false' && p.bytes === 0) ||
|
||||
(p.partial !== 'false' && p.bytes !== 0);
|
||||
},
|
||||
test: { partial: 'false', bytes: 0 },
|
||||
});
|
||||
|
||||
function main({ n, bytes, partial }) {
|
||||
|
||||
Reference in New Issue
Block a user