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
11 months ago
Test name Executions per second
Number (with string integer) 1982553.6 Ops/sec
Unary + (with string integer) 2854920.2 Ops/sec
parseInt (with string integer) 1994036.1 Ops/sec
Number (with string float) 1169534.1 Ops/sec
Unary + (with string float) 1496223.5 Ops/sec
parseInt (with string float) 1347983.9 Ops/sec
Number (with integer) 2078076.9 Ops/sec
Unary + (with integer) 3103226.5 Ops/sec
parseInt (with integer) 2079004.9 Ops/sec
Number (with float) 3033404.5 Ops/sec
Unary + (with float) 5933989.5 Ops/sec
parseInt (with float) 3035085.2 Ops/sec
Number (with NaN) 6205412.0 Ops/sec
Unary + (with NaN) 782283712.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)


;