Number() vs parseInt() vs plus

Benchmark created by Pat Cavit on


Test runner

Ready to run.

Testing in
TestOps/sec
Number Constructor
Number("10")
ready
parseInt
parseInt("10", 10)
ready
Plus operator
+"10"
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.