mirror of
https://github.com/nodejs/node.git
synced 2025-05-11 01:27:14 +00:00

A benchmark was added but the appropriate settings were not added to test-benchmark-buffer. These two additions make sure that the new benchmark file only runs a single benchmark during testing. PR-URL: https://github.com/nodejs/node/pull/29163 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
32 lines
796 B
JavaScript
32 lines
796 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',
|
|
'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 });
|