Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Number (with string integer) 2527414.5 Ops/sec
Unary + (with string integer) 3817036.2 Ops/sec
parseInt (with string integer) 2642593.2 Ops/sec
Double Bitwise (with string integer) 2243895.8 Ops/sec
Number (with integer) 2737009.8 Ops/sec
Unary + (with integer) 4140097.0 Ops/sec
parseInt (with integer) 2721493.5 Ops/sec
Double Bitwise 8087437.0 Ops/sec
Tests:
  • Number (with string integer)

  • Unary + (with string integer)

  • parseInt (with string integer)

  • Double Bitwise (with string integer)

  • Number (with integer)

  • Unary + (with integer)

  • parseInt (with integer)

  • Double Bitwise


;