Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
notnot 3935217.8 Ops/sec
parseInt 2719794.2 Ops/sec
Number 2925860.8 Ops/sec
parseFloat 2926428.5 Ops/sec
+0 9325316.0 Ops/sec
*1 5312288.0 Ops/sec
-0 5568726.0 Ops/sec
+ 5902646.5 Ops/sec
<<0 5677749.0 Ops/sec
/1 5418573.0 Ops/sec
Script Preparation code:
Tests:
  • notnot

  • parseInt

  • Number

  • parseFloat

  • +0

  • *1

  • -0

  • +

  • <<0

  • /1