/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.2.0
test/benchmark/test-benchmark-napi.js
20 строк
485 B
Vladimir Morozov
node-api: use Node-API in comments
16 янв 2026, 19:00
Не верифицирован
16 янв 2026, 19:00
53b3c83
Код
Авторство
О чём код?
'use strict'; const common = require('../common'); if (common.isWindows) { common.skip('vcbuild.bat doesn\'t build the Node-API benchmarks yet'); } const { isMainThread } = require('worker_threads'); if (!isMainThread) { common.skip('addons are not supported in workers'); } if (common.isDebug) { common.skip('benchmark does not work with debug build yet'); } const runBenchmark = require('../common/benchmark'); runBenchmark('napi', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });