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) 1981774.0 Ops/sec
Unary + (with string integer) 2848017.0 Ops/sec
parseInt (with string integer) 1957631.0 Ops/sec
Number (with string float) 1136525.0 Ops/sec
Unary + (with string float) 1436460.0 Ops/sec
parseInt (with string float) 1290166.0 Ops/sec
Number (with integer) 2097251.0 Ops/sec
Unary + (with integer) 3062866.0 Ops/sec
parseInt (with integer) 2009013.0 Ops/sec
Number (with float) 2913221.0 Ops/sec
Unary + (with float) 5494483.0 Ops/sec
parseInt (with float) 2627235.0 Ops/sec
Number (with NaN) 5790934.0 Ops/sec
Unary + (with NaN) 1260127000.0 Ops/sec
parseInt (with NaN) 5324195.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)