Type Stable Code

Benchmark created on


Preparation HTML

<script>
  function StableVar (){
  var a = 1;
  var b = 'hello';
  a = 2;
  b = 'world';
  return a;
  }
  
  function UnstableVar (){
  var a = 1;
  var b = 'hello';
  a = 'world';
  b = 2;
  return b;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Type Stable
var o = StableVar();
ready
Type Unstable
var o = UnstableVar();
ready

Revisions

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