Skip to content

Commit 7dfd570

Browse files
Trottjasnell
authored andcommitted
test: add test-benchmark-assert
Add minimal test for `assert` benchmarks. PR-URL: #15174 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a906645 commit 7dfd570

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
'use strict';
2+
3+
require('../common');
4+
5+
// Minimal test for assert benchmarks. This makes sure the benchmarks aren't
6+
// completely broken but nothing more than that.
7+
8+
const runBenchmark = require('../common/benchmark');
9+
10+
runBenchmark(
11+
'assert', ['len=1', 'method=', 'n=1', 'prim=null', 'size=1', 'type=Int8Array']
12+
);

0 commit comments

Comments
 (0)