Skip to content

Instantly share code, notes, and snippets.

@heytulsiprasad
Created September 22, 2021 04:42
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 heytulsiprasad/ea9593d53fd2d68a790987ad9e616813 to your computer and use it in GitHub Desktop.
Save heytulsiprasad/ea9593d53fd2d68a790987ad9e616813 to your computer and use it in GitHub Desktop.
Shows how to calculate difference in execution time in react native
console.log(JSON.stringify({ filter }, null, 4));
const start = new Date().getTime();
const end = new Date().getTime();
const time = end - start;
console.log({
inLength: filteredChatrooms.length,
filterTime: time,
outLength: chatrooms.length
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment