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)
782.3M/s
Number (with NaN)
6.2M/s
parseInt (with NaN)
6.1M/s
Unary + (with float)
5.9M/s
Unary + (with integer)
3.1M/s
parseInt (with float)
3.0M/s
Number (with float)
3.0M/s
Unary + (with string integer)
2.9M/s
parseInt (with integer)
2.1M/s
Number (with integer)
2.1M/s
parseInt (with string integer)
2.0M/s
Number (with string integer)
2.0M/s
Unary + (with string float)
1.5M/s
parseInt (with string float)
1.3M/s
Number (with string float)
1.2M/s
View exact numbers
Test name Executions per second
Unary + (with NaN) 782,283,712 Ops/sec
Number (with NaN) 6,205,412 Ops/sec
parseInt (with NaN) 6,071,031 Ops/sec
Unary + (with float) 5,933,990 Ops/sec
Unary + (with integer) 3,103,226 Ops/sec
parseInt (with float) 3,035,085 Ops/sec
Number (with float) 3,033,404 Ops/sec
Unary + (with string integer) 2,854,920 Ops/sec
parseInt (with integer) 2,079,005 Ops/sec
Number (with integer) 2,078,077 Ops/sec
parseInt (with string integer) 1,994,036 Ops/sec
Number (with string integer) 1,982,554 Ops/sec
Unary + (with string float) 1,496,224 Ops/sec
parseInt (with string float) 1,347,984 Ops/sec
Number (with string float) 1,169,534 Ops/sec
Tests: