mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 12:49:23 +00:00

Move benchmark tests (which are slow) out of the main test suite. We can hopefully add them to node-daily-master so that they are still run daily on CI. PR-URL: https://github.com/nodejs/node/pull/24265 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
if (common.isWindows) {
|
|
common.skip('vcbuild.bat doesn\'t build the n-api benchmarks yet');
|
|
}
|
|
|
|
if (!common.isMainThread) {
|
|
common.skip('addons are not supported in workers');
|
|
}
|
|
|
|
if (process.features.debug) {
|
|
common.skip('benchmark does not work with debug build yet');
|
|
}
|
|
const runBenchmark = require('../common/benchmark');
|
|
|
|
runBenchmark('napi',
|
|
[
|
|
'n=1',
|
|
'engine=v8',
|
|
'type=String'
|
|
],
|
|
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|