-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
- Loading branch information
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 }); |