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) 34231200.0 Ops/sec
Unary + (with string integer) 36209370.0 Ops/sec
parseInt (with string integer) 135758200.0 Ops/sec
Number (with string float) 4333808.0 Ops/sec
Unary + (with string float) 4463954.0 Ops/sec
parseInt (with string float) 17855780.0 Ops/sec
Number (with integer) 54460110.0 Ops/sec
Unary + (with integer) 1700057000.0 Ops/sec
parseInt (with integer) 1769049000.0 Ops/sec
Number (with float) 59429820.0 Ops/sec
Unary + (with float) 1779927000.0 Ops/sec
parseInt (with float) 1588673000.0 Ops/sec
Number (with NaN) 1744792000.0 Ops/sec
Unary + (with NaN) 1589300000.0 Ops/sec
parseInt (with NaN) 1722542000.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)