Run details:
Mozilla/5.0 (Linux; Android 9; Redmi 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.58 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Number (with string integer) 265365.1 Ops/sec
Unary + (with string integer) 391074.4 Ops/sec
parseInt (with string integer) 270508.1 Ops/sec
Number (with string float) 191994.2 Ops/sec
Unary + (with string float) 235044.8 Ops/sec
parseInt (with string float) 204368.0 Ops/sec
Number (with integer) 284989.8 Ops/sec
Unary + (with integer) 420590.4 Ops/sec
parseInt (with integer) 268554.6 Ops/sec
Number (with float) 423236.8 Ops/sec
Unary + (with float) 848751.8 Ops/sec
parseInt (with float) 415400.5 Ops/sec
Number (with NaN) 919157.2 Ops/sec
Unary + (with NaN) 190644832.0 Ops/sec
parseInt (with NaN) 657450.9 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)