Casting a string to int

Benchmark created by Jonathan Petitcolas on


Test runner

Ready to run.

Testing in
TestOps/sec
With double tilde
~~"1";
ready
With multiplication
"1" * 1;
ready
With parseInt
parseInt("1")
ready

Revisions

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

  • Revision 1: published by Jonathan Petitcolas on