Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Chrome Mobile 120
Android
Mobile
10 months ago
Test name Executions per second
Number (with string integer) 1982554.0 Ops/sec
Unary + (with string integer) 2854920.0 Ops/sec
parseInt (with string integer) 1994036.0 Ops/sec
Number (with string float) 1169534.0 Ops/sec
Unary + (with string float) 1496224.0 Ops/sec
parseInt (with string float) 1347984.0 Ops/sec
Number (with integer) 2078077.0 Ops/sec
Unary + (with integer) 3103227.0 Ops/sec
parseInt (with integer) 2079005.0 Ops/sec
Number (with float) 3033405.0 Ops/sec
Unary + (with float) 5933990.0 Ops/sec
parseInt (with float) 3035085.0 Ops/sec
Number (with NaN) 6205412.0 Ops/sec
Unary + (with NaN) 782283700.0 Ops/sec
parseInt (with NaN) 6071031.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)