mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 05:00:15 +00:00

Split them into their own benhmark file and use different byteLength values. PR-URL: https://github.com/nodejs/node/pull/11146 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
29 lines
705 B
JavaScript
29 lines
705 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('buffers',
|
|
[
|
|
'aligned=true',
|
|
'args=1',
|
|
'buffer=fast',
|
|
'byteLength=1',
|
|
'encoding=utf8',
|
|
'endian=BE',
|
|
'len=2',
|
|
'method=',
|
|
'n=1',
|
|
'noAssert=true',
|
|
'pieces=1',
|
|
'pieceSize=1',
|
|
'search=@',
|
|
'size=1',
|
|
'source=array',
|
|
'type=',
|
|
'value=0',
|
|
'withTotalLength=0'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|