Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/122.0.6261.62 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 122
iOS 17.3
Mobile
2 years ago
Unary + (with NaN)
192.1M/s
parseInt (with NaN)
19.1M/s
Unary + (with float)
18.6M/s
Number (with NaN)
17.9M/s
parseInt (with float)
9.9M/s
Number (with float)
8.4M/s
Unary + (with string integer)
8.2M/s
Unary + (with string float)
7.0M/s
parseInt (with integer)
7.0M/s
Unary + (with integer)
6.8M/s
Number (with string integer)
5.9M/s
parseInt (with string integer)
5.9M/s
parseInt (with string float)
5.5M/s
Number (with integer)
5.4M/s
Number (with string float)
5.3M/s
View exact numbers
Test name Executions per second
Unary + (with NaN) 192,085,632 Ops/sec
parseInt (with NaN) 19,079,310 Ops/sec
Unary + (with float) 18,604,116 Ops/sec
Number (with NaN) 17,893,268 Ops/sec
parseInt (with float) 9,866,893 Ops/sec
Number (with float) 8,369,838 Ops/sec
Unary + (with string integer) 8,227,985 Ops/sec
Unary + (with string float) 7,012,830 Ops/sec
parseInt (with integer) 7,006,746 Ops/sec
Unary + (with integer) 6,772,040 Ops/sec
Number (with string integer) 5,931,248 Ops/sec
parseInt (with string integer) 5,868,448 Ops/sec
parseInt (with string float) 5,456,702 Ops/sec
Number (with integer) 5,364,293 Ops/sec
Number (with string float) 5,269,336 Ops/sec
Tests: