mirror of https://github.com/nodejs/node.git
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 });
|