trycatchtest

Benchmark created on


Preparation HTML

<script>
  var noTC = function() {
   for (var i = 0; i < 10; i++);
   for (var j = 0; j < 10; j++);
  };
  var TC = function() {
   try {
    for (var j = 0; j < 10; j++);
    throw ('error');
   } catch (e) {
    for (var i = 0; i < 10; i++);
   }
  };
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
TC
TC();
ready
noTC
noTC();
ready

Revisions

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