How to use the beautify-benchmark.add function in beautify-benchmark

To help you get started, we’ve selected a few beautify-benchmark examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Redocly / redoc / benchmark / benchmark.js View on Github external
page.on('console', async msg => {
        const args = msg.args();
        const obj = args.length > 0 && (await args[0].jsonValue());
        if (!obj) return;

        if (obj.done) {
          beautifyBenchmark.log();
          // resolve(obj);
        } else if (obj.cycle) {
          beautifyBenchmark.add(obj.cycle);
        } else if (obj.allDone) {
          resolve();
        } else {
          console.log(obj);
        }
      });
      await page.goto('http://127.0.0.1:9090', { timeout: 0 });
github selfrefactor / rambda / benchmarks / index.js View on Github external
.on('cycle', event => {
        if (BEAUTIFY){
          benchmarks.add(event.target)
        } else {
          console.log(String(event.target))
        }
      })
      .on('complete', () => {
github bvaughn / js-search / benchmarks / create-index.js View on Github external
.on('cycle', (event) => {
      console.log(String(event.target));
      bb.add(event.target);
    })
    .on('complete', () => {
github bvaughn / js-search / benchmarks / search.js View on Github external
.on('cycle', (event) => {
      console.log(String(event.target));
      bb.add(event.target);
    })
    .on('complete', () => {
github Nevon / express-physical / scripts / performance / benchmarks / index.js View on Github external
.on("cycle", event => {
      if (event.target.error) {
        event.target.error = {
          stack: event.target.error.stack
        };
      }
      bb.add(event.target);
    })
    .on("complete", () => {
github jaegertracing / jaeger-client-node / benchmarks / tracer.js View on Github external
.on('cycle', function(event) {
        benchmarks.add(event.target);
        event.target.name = event.target.name + description;
      })
      .on('complete', function() {
github DavidTPate / isuri / benchmark / complex-ipv4.js View on Github external
}).on('cycle', function onCycle(event) {
    benchmarks.add(event.target);
}).on('complete', function onComplete() {
    benchmarks.log();
github DavidTPate / isuri / benchmark / simple-uri.js View on Github external
}).on('cycle', function onCycle(event) {
    benchmarks.add(event.target);
}).on('complete', function onComplete() {
    benchmarks.log();
github DavidTPate / isuri / benchmark / complex-uri.js View on Github external
}).on('cycle', function onCycle(event) {
    benchmarks.add(event.target);
}).on('complete', function onComplete() {
    benchmarks.log();
github DavidTPate / isuri / benchmark / complex-ipv6.js View on Github external
}).on('cycle', function onCycle(event) {
    benchmarks.add(event.target);
}).on('complete', function onComplete() {
    benchmarks.log();

beautify-benchmark

Beautify Benchmark.js's output into readable form.

MIT
Latest version published 11 years ago

Package Health Score

45 / 100
Full package analysis

Popular beautify-benchmark functions