How to use the benchmark.Event function in benchmark

To help you get started, we’ve selected a few 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 jsdom / jsdom / benchmark / document-suite.js View on Github external
function addBenchmark(suite, benchmark) {
  const event = new Benchmark.Event({ type: "add", target: benchmark });
  if (!event.cancelled) {