Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Windows
Desktop
one year ago
Test name Executions per second
Number (with string integer) 34231204.0 Ops/sec
Unary + (with string integer) 36209372.0 Ops/sec
parseInt (with string integer) 135758240.0 Ops/sec
Number (with string float) 4333808.0 Ops/sec
Unary + (with string float) 4463954.0 Ops/sec
parseInt (with string float) 17855784.0 Ops/sec
Number (with integer) 54460108.0 Ops/sec
Unary + (with integer) 1700056960.0 Ops/sec
parseInt (with integer) 1769049344.0 Ops/sec
Number (with float) 59429816.0 Ops/sec
Unary + (with float) 1779926528.0 Ops/sec
parseInt (with float) 1588673152.0 Ops/sec
Number (with NaN) 1744792192.0 Ops/sec
Unary + (with NaN) 1589299840.0 Ops/sec
parseInt (with NaN) 1722542208.0 Ops/sec
Tests:
  • Number (with string integer)

  • Unary + (with string integer)

  • parseInt (with string integer)

  • Number (with string float)

  • Unary + (with string float)

  • parseInt (with string float)

  • Number (with integer)

  • Unary + (with integer)

  • parseInt (with integer)

  • Number (with float)

  • Unary + (with float)

  • parseInt (with float)

  • Number (with NaN)

  • Unary + (with NaN)

  • parseInt (with NaN)


;