node/test/parallel/test-benchmark-assert.js
Ruben Bridgewater 5442c28b65
benchmark: improve assert benchmarks
This reduces the runtime and makes sure the strict and loose options
can be tested individually.

Besides that a couple of redundant cases were removed.

PR-URL: https://github.com/nodejs/node/pull/22211
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-08-13 11:46:40 +02:00

22 lines
368 B
JavaScript

'use strict';
require('../common');
// Minimal test for assert benchmarks. This makes sure the benchmarks aren't
// completely broken but nothing more than that.
const runBenchmark = require('../common/benchmark');
runBenchmark(
'assert',
[
'strict=1',
'len=1',
'method=',
'n=1',
'primitive=null',
'size=1',
'type=Int8Array'
]
);