Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
one year ago
Unary + (with NaN)
115.8M/s
parseInt (with NaN)
11.3M/s
Number (with NaN)
11.2M/s
Unary + (with float)
10.4M/s
Unary + (with integer)
5.8M/s
Number (with float)
5.6M/s
parseInt (with float)
5.4M/s
Unary + (with string integer)
5.1M/s
Number (with integer)
4.0M/s
parseInt (with integer)
3.8M/s
Number (with string integer)
3.7M/s
parseInt (with string integer)
3.6M/s
Unary + (with string float)
3.1M/s
parseInt (with string float)
2.5M/s
Number (with string float)
2.5M/s
View exact numbers
Test name Executions per second
Unary + (with NaN) 115,805,384 Ops/sec
parseInt (with NaN) 11,301,867 Ops/sec
Number (with NaN) 11,171,146 Ops/sec
Unary + (with float) 10,376,790 Ops/sec
Unary + (with integer) 5,831,906 Ops/sec
Number (with float) 5,604,960 Ops/sec
parseInt (with float) 5,385,102 Ops/sec
Unary + (with string integer) 5,145,685 Ops/sec
Number (with integer) 3,973,419 Ops/sec
parseInt (with integer) 3,754,735 Ops/sec
Number (with string integer) 3,664,614 Ops/sec
parseInt (with string integer) 3,642,762 Ops/sec
Unary + (with string float) 3,126,319 Ops/sec
parseInt (with string float) 2,549,427 Ops/sec
Number (with string float) 2,474,588 Ops/sec
Tests: