parse vs plus (v2)

Revision 2 of this benchmark created by sdasdas on


Setup

x = "5555";

Test runner

Ready to run.

Testing in
TestOps/sec
parse
var y = parseInt(x);
ready
plus
var y = +x;
ready
parse10
var y = parseInt(x, 10);
ready

Revisions

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

  • Revision 2: published by sdasdas on
  • Revision 3: published by Bob Fornal on