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
2 years ago
Unary + (with NaN)
1260.1M/s
Number (with NaN)
5.8M/s
Unary + (with float)
5.5M/s
parseInt (with NaN)
5.3M/s
Unary + (with integer)
3.1M/s
Number (with float)
2.9M/s
Unary + (with string integer)
2.8M/s
parseInt (with float)
2.6M/s
Number (with integer)
2.1M/s
parseInt (with integer)
2.0M/s
Number (with string integer)
2.0M/s
parseInt (with string integer)
2.0M/s
Unary + (with string float)
1.4M/s
parseInt (with string float)
1.3M/s
Number (with string float)
1.1M/s
View exact numbers
Test name Executions per second
Unary + (with NaN) 1,260,127,232 Ops/sec
Number (with NaN) 5,790,934 Ops/sec
Unary + (with float) 5,494,483 Ops/sec
parseInt (with NaN) 5,324,194 Ops/sec
Unary + (with integer) 3,062,866 Ops/sec
Number (with float) 2,913,221 Ops/sec
Unary + (with string integer) 2,848,017 Ops/sec
parseInt (with float) 2,627,235 Ops/sec
Number (with integer) 2,097,251 Ops/sec
parseInt (with integer) 2,009,013 Ops/sec
Number (with string integer) 1,981,774 Ops/sec
parseInt (with string integer) 1,957,631 Ops/sec
Unary + (with string float) 1,436,460 Ops/sec
parseInt (with string float) 1,290,166 Ops/sec
Number (with string float) 1,136,525 Ops/sec
Tests: