From 7dfd570cad8b781a0afa66902b45790fd8697936 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 3 Sep 2017 14:13:55 -0700 Subject: [PATCH] test: add test-benchmark-assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add minimal test for `assert` benchmarks. PR-URL: https://github.com/nodejs/node/pull/15174 Reviewed-By: Ruben Bridgewater Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- test/parallel/test-benchmark-assert.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/parallel/test-benchmark-assert.js diff --git a/test/parallel/test-benchmark-assert.js b/test/parallel/test-benchmark-assert.js new file mode 100644 index 00000000000000..a83bbf8ad8cf41 --- /dev/null +++ b/test/parallel/test-benchmark-assert.js @@ -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'] +);