mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
This reverts commit 78aa348f4e.
Refs: https://github.com/nodejs/node/pull/31396
PR-URL: https://github.com/nodejs/node/pull/31722
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Colin Ihrig <cjihrig@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 });
|