Skip to content

Instantly share code, notes, and snippets.

@whatisor
Created June 26, 2021 15:09
Show Gist options
  • Save whatisor/cfcee9c803a3145adbcdcc763b8d5598 to your computer and use it in GitHub Desktop.
Save whatisor/cfcee9c803a3145adbcdcc763b8d5598 to your computer and use it in GitHub Desktop.
Checked test: toFixed(0) x 5,057,837 ops/sec ±0.56% (66 runs sampled)
Checked test: Math.floor x 4,522,238 ops/sec ±0.84% (67 runs sampled)
Checked test: ~~ x 12,077,987 ops/sec ±0.34% (67 runs sampled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment