parseFloat alternative

Benchmark created by pmilkman on


Preparation HTML

<script>
  var a = "111.111"
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
parseFloat
a = parseFloat(a);
ready
~~
a = ~~a + (a - ~~a)
ready

Revisions

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

  • Revision 1: published by pmilkman on
  • Revision 2: published by pmilkman on
  • Revision 3: published by pmilkman on
  • Revision 4: published by pmilkman on