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
10 months ago
Test name Executions per second
Number (with string integer) 7839752.0 Ops/sec
Unary + (with string integer) 11300315.0 Ops/sec
parseInt (with string integer) 7854801.0 Ops/sec
Number (with string float) 4875615.5 Ops/sec
Unary + (with string float) 6019895.5 Ops/sec
parseInt (with string float) 5673597.0 Ops/sec
Number (with integer) 8121842.5 Ops/sec
Unary + (with integer) 12083534.0 Ops/sec
parseInt (with integer) 8245797.5 Ops/sec
Number (with float) 12122711.0 Ops/sec
Unary + (with float) 22854592.0 Ops/sec
parseInt (with float) 11678414.0 Ops/sec
Number (with NaN) 24614624.0 Ops/sec
Unary + (with NaN) 261015344.0 Ops/sec
parseInt (with NaN) 23948368.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)