node/test/parallel/test-benchmark-assert.js
Rich Trott a901849306 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>
2017-09-15 15:34:46 -07:00

13 lines
317 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', ['len=1', 'method=', 'n=1', 'prim=null', 'size=1', 'type=Int8Array']
);