nested closure

Benchmark created by Francis on


Preparation HTML

<script>
  function a(value) {
  return a_a(value) + a_c(value);
  }
  
  function a_a(value) {
  return value * 2;
  }
  
  function a_c(value) {
  return value * 3;
  }
  
  function d(value) {
  var a = function() {return value * 2;}
  var b = function() {return value * 3;}
  return a() + b();
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
without closure
a(33);
ready
with closure
d(33);
ready

Revisions

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

  • Revision 1: published by Francis on
  • Revision 2: published by jurassicPieter on