• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3const common = require('../common');
4
5if (common.isWindows) {
6  common.skip('vcbuild.bat doesn\'t build the n-api benchmarks yet');
7}
8
9if (!common.isMainThread) {
10  common.skip('addons are not supported in workers');
11}
12
13if (process.features.debug) {
14  common.skip('benchmark does not work with debug build yet');
15}
16const runBenchmark = require('../common/benchmark');
17
18runBenchmark('napi', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
19