test: add test-benchmark-assert
Add minimal test for `assert` benchmarks. PR-URL: https://github.com/nodejs/node/pull/15174 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
3c4c0db26a
commit
a901849306
12
test/parallel/test-benchmark-assert.js
Normal file
12
test/parallel/test-benchmark-assert.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
'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', ['len=1', 'method=', 'n=1', 'prim=null', 'size=1', 'type=Int8Array']
|
||||||
|
);
|
Loading…
x
Reference in New Issue
Block a user