Skip to content

Instantly share code, notes, and snippets.

@willmendesneto
Created March 29, 2021 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willmendesneto/5b82b65ef17877b59c7434e9d495eb8d to your computer and use it in GitHub Desktop.
Save willmendesneto/5b82b65ef17877b59c7434e9d495eb8d to your computer and use it in GitHub Desktop.
perf-marks example using `marks` entry point
import { start, end } from 'perf-marks/marks';
const marker = 'my-marker';
// Starting the marker
start(marker);
setTimeout(() => {
// Calling the marker for comparison
console.log(end(marker));
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment