mirror of https://github.com/nodejs/node.git
30 lines
741 B
JavaScript
30 lines
741 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',
|
|
'millions=0.000001',
|
|
'method=',
|
|
'n=1',
|
|
'noAssert=true',
|
|
'pieces=1',
|
|
'pieceSize=1',
|
|
'search=@',
|
|
'size=1',
|
|
'source=array',
|
|
'type=',
|
|
'value=0',
|
|
'withTotalLength=0'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|