Skip to content

Instantly share code, notes, and snippets.

@ravecat
Created October 25, 2020 19:31
Show Gist options
  • Save ravecat/067b812b5a91e6c665b00b9ccbd2f736 to your computer and use it in GitHub Desktop.
Save ravecat/067b812b5a91e6c665b00b9ccbd2f736 to your computer and use it in GitHub Desktop.
node, time, benchmark
const begin = process.hrtime.bigint();
{...}
const diff = (process.hrtime.bigint() - begin) / 1000000n;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment