Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
11 months ago
Test name Executions per second
Number (with string integer) 1647141.0 Ops/sec
Unary + (with string integer) 2365007.0 Ops/sec
parseInt (with string integer) 1622477.0 Ops/sec
Number (with string float) 1170948.0 Ops/sec
Unary + (with string float) 1553385.0 Ops/sec
parseInt (with string float) 1257047.0 Ops/sec
Number (with integer) 1820789.0 Ops/sec
Unary + (with integer) 2643448.0 Ops/sec
parseInt (with integer) 1785600.0 Ops/sec
Number (with float) 2658424.0 Ops/sec
Unary + (with float) 4712360.0 Ops/sec
parseInt (with float) 2541833.0 Ops/sec
Number (with NaN) 5670096.0 Ops/sec
Unary + (with NaN) 744097100.0 Ops/sec
parseInt (with NaN) 5466320.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)