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

Specify `buffer=fast` so that we only run that and not that along with `buffer=slow` in two benchmarks. PR-URL: https://github.com/nodejs/node/pull/17111 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
26 lines
620 B
JavaScript
26 lines
620 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('buffers',
|
|
[
|
|
'aligned=true',
|
|
'args=1',
|
|
'buffer=fast',
|
|
'encoding=utf8',
|
|
'len=2',
|
|
'method=',
|
|
'n=1',
|
|
'noAssert=true',
|
|
'pieces=1',
|
|
'pieceSize=1',
|
|
'search=@',
|
|
'size=1',
|
|
'source=array',
|
|
'type=',
|
|
'withTotalLength=0'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|