mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
6f27f5350c
The addition of brotli to zlib benchmarks means that test-benchmark-zlib needs to be modified. This is that modification. PR-URL: https://github.com/nodejs/node/pull/25365 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
20 lines
442 B
JavaScript
20 lines
442 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('zlib',
|
|
[
|
|
'algorithm=brotli',
|
|
'method=deflate',
|
|
'n=1',
|
|
'options=true',
|
|
'type=Deflate',
|
|
'inputLen=1024',
|
|
'duration=0.001'
|
|
],
|
|
{
|
|
'NODEJS_BENCHMARK_ZERO_ALLOWED': 1
|
|
});
|