convertion en Int (v3)

Revision 3 of this benchmark created on


Preparation HTML

<script>
  /*
  Attention :
  a="08.99";
  +a // 8.99
  ~~a //8
  parseInt(a,10); //8
  
  */
  a="08";
  b="500";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
avec parseInt
parseInt(a,10);
parseInt(b,10);
ready
Avec ~~
~~a;
~~b;
ready
Typage Number
Number(a);
Number(b);
ready
avec +
+a;
+b;
ready

Revisions

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