performance of parseInt() (v26)

Revision 26 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
parseInt(x)
parseInt('4')
ready
+x
+'4'
ready
~~x
~~'4'
ready
Number(x)
Number('4')
ready
new Number(x)
// Please note that new primitives are dangerous
new Number('4')
ready

Revisions

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