Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Chrome 139
Windows
Desktop
one year ago
Number (with NaN)
133.6M/s
Unary + (with NaN)
128.9M/s
parseInt (with NaN)
123.7M/s
Number (with integer)
78.2M/s
Unary + (with float)
76.6M/s
Number (with float)
74.0M/s
Unary + (with integer)
74.0M/s
Number (with string integer)
63.2M/s
parseInt (with integer)
58.8M/s
parseInt (with float)
53.1M/s
Unary + (with string integer)
43.7M/s
parseInt (with string integer)
38.4M/s
parseInt (with string float)
8.6M/s
Unary + (with string float)
7.7M/s
Number (with string float)
7.4M/s
View exact numbers
Test name Executions per second
Number (with NaN) 133,550,008 Ops/sec
Unary + (with NaN) 128,934,136 Ops/sec
parseInt (with NaN) 123,709,656 Ops/sec
Number (with integer) 78,157,392 Ops/sec
Unary + (with float) 76,626,736 Ops/sec
Number (with float) 74,036,704 Ops/sec
Unary + (with integer) 73,983,024 Ops/sec
Number (with string integer) 63,153,728 Ops/sec
parseInt (with integer) 58,755,068 Ops/sec
parseInt (with float) 53,077,900 Ops/sec
Unary + (with string integer) 43,665,928 Ops/sec
parseInt (with string integer) 38,442,036 Ops/sec
parseInt (with string float) 8,629,276 Ops/sec
Unary + (with string float) 7,671,954 Ops/sec
Number (with string float) 7,397,962 Ops/sec
Tests: