Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
8 months ago
Test name Executions per second
Number (with string integer) 7839752.0 Ops/sec
Unary + (with string integer) 11300320.0 Ops/sec
parseInt (with string integer) 7854801.0 Ops/sec
Number (with string float) 4875616.0 Ops/sec
Unary + (with string float) 6019896.0 Ops/sec
parseInt (with string float) 5673597.0 Ops/sec
Number (with integer) 8121843.0 Ops/sec
Unary + (with integer) 12083530.0 Ops/sec
parseInt (with integer) 8245798.0 Ops/sec
Number (with float) 12122710.0 Ops/sec
Unary + (with float) 22854590.0 Ops/sec
parseInt (with float) 11678410.0 Ops/sec
Number (with NaN) 24614620.0 Ops/sec
Unary + (with NaN) 261015300.0 Ops/sec
parseInt (with NaN) 23948370.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)