jay named test (v2)

Revision 2 of this benchmark created by ke on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  function foo(cb) {
    if (cb) cb(5);
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
anon
foo(function(val) {
  var i = val;
});
ready
named
function cbTest(val) {
  var i = val;
}

foo(cbTest);
ready

Revisions

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