parseInt vs direct casting (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
parseInt
parseInt("13371337")
ready
string + 0
"13371337" + 0 // Fails in ie8
ready
1 * string
1 * "13371337"
ready
+string
+"13371337"
ready

Revisions

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