Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Windows
Desktop
one year ago
Test name Executions per second
Number (with string integer) 41473100.0 Ops/sec
Unary + (with string integer) 41505120.0 Ops/sec
parseInt (with string integer) 1277845888.0 Ops/sec
Double Bitwise (with string integer) 4690700.0 Ops/sec
Number (with integer) 32574996.0 Ops/sec
Unary + (with integer) 711415104.0 Ops/sec
parseInt (with integer) 718727616.0 Ops/sec
Double Bitwise 843030656.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


;