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) 2523370.5 Ops/sec
Unary + (with string integer) 3856183.2 Ops/sec
parseInt (with string integer) 2660179.0 Ops/sec
Double Bitwise (with string integer) 2220346.8 Ops/sec
Number (with integer) 2710820.0 Ops/sec
Unary + (with integer) 4101858.2 Ops/sec
parseInt (with integer) 2728061.5 Ops/sec
Double Bitwise 8061462.5 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