Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36
Chrome Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Number (with string integer) 278950.1 Ops/sec
Unary + (with string integer) 403797.7 Ops/sec
parseInt (with string integer) 280576.5 Ops/sec
Number (with string float) 161410.6 Ops/sec
Unary + (with string float) 193912.5 Ops/sec
parseInt (with string float) 159199.7 Ops/sec
Number (with integer) 290918.9 Ops/sec
Unary + (with integer) 429013.6 Ops/sec
parseInt (with integer) 284303.9 Ops/sec
Number (with float) 424219.5 Ops/sec
Unary + (with float) 800553.2 Ops/sec
parseInt (with float) 408515.7 Ops/sec
Number (with NaN) 853182.7 Ops/sec
Unary + (with NaN) 169651408.0 Ops/sec
parseInt (with NaN) 789727.4 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)


;