node/test/sequential/test-benchmark-buffer.js
Ruben Bridgewater 81aaab75ca
benchmark: remove noAssert argument
This removes the `noAssert` argument and also adds some more tests.

PR-URL: https://github.com/nodejs/node/pull/18395
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2018-03-02 19:29:47 +00:00

29 lines
709 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',
'pieces=1',
'pieceSize=1',
'search=@',
'size=1',
'source=array',
'type=',
'value=0',
'withTotalLength=0'
],
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });