3 ms·~~ is faster than Math.floor() in JavaScript2 points by afshinmeh 14y agomooism2 14y agoI clicked through and found ~~ is 6% slower in my browser on my machine. Any statement about javascript performance has to state which javascript implementations it applies to.afshinmeh 14y agoYup, correct. But ~~ is faster in 90% of tests (not all)