Skip to content

Instantly share code, notes, and snippets.

@dbwodlf3
Last active March 6, 2023 03:15
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 dbwodlf3/3d0b247fc57d2e219daca73368dfc07a to your computer and use it in GitHub Desktop.
Save dbwodlf3/3d0b247fc57d2e219daca73368dfc07a to your computer and use it in GitHub Desktop.
check performance
const INIT_TIME = new Date().getTime();
const _t = _ => console.log(`${new Date().getTime() - INIT_TIME}ms`);
_t();
// Browser
const INIT_TIME = performance.now();
const _t = _ => console.log(`${performance.now() - INIT_TIME}ms`);
_t();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment