Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
4 months ago
Test name Executions per second
Number (with string integer) 3231286.0 Ops/sec
Unary + (with string integer) 4170423.0 Ops/sec
parseInt (with string integer) 3270821.0 Ops/sec
Number (with string float) 1791099.0 Ops/sec
Unary + (with string float) 2088617.0 Ops/sec
parseInt (with string float) 2150533.0 Ops/sec
Number (with integer) 3378666.0 Ops/sec
Unary + (with integer) 4878483.0 Ops/sec
parseInt (with integer) 3406102.0 Ops/sec
Number (with float) 4920652.0 Ops/sec
Unary + (with float) 9179648.0 Ops/sec
parseInt (with float) 4652590.0 Ops/sec
Number (with NaN) 9181364.0 Ops/sec
Unary + (with NaN) 133466600.0 Ops/sec
parseInt (with NaN) 9577154.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)