-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also makes sure that the napi benchmark is built before running jstest. Skipped on windows since n-api benchmarks aren't built there yet. PR-URL: #23585 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
- Loading branch information
1 parent
1484eeb
commit 9e9bb85
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'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 }); |