mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
f0c8898fb5
PR-URL: https://github.com/nodejs/node/pull/29199 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
33 lines
828 B
JavaScript
33 lines
828 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('buffers',
|
|
[
|
|
'aligned=true',
|
|
'args=1',
|
|
'buffer=fast',
|
|
'bytes=0',
|
|
'byteLength=1',
|
|
'charsPerLine=6',
|
|
'difflen=false',
|
|
'encoding=utf8',
|
|
'endian=BE',
|
|
'len=256',
|
|
'linesCount=1',
|
|
'method=',
|
|
'n=1',
|
|
'partial=true',
|
|
'pieces=1',
|
|
'pieceSize=1',
|
|
'search=@',
|
|
'size=1',
|
|
'source=array',
|
|
'type=',
|
|
'value=0',
|
|
'withTotalLength=0'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|