arguments-woes (v5)

Revision 5 of this benchmark created on


Preparation HTML

<script>
  function f() {
    return arguments.length > 0 ? 1 : 0;
  }
  
  function g(x) {
    return (typeof x === 'undefined') ? 0 : 1;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
missing argument check via arguments
f();
f(1);
ready
missing argument check via named arg
g();
g(1);
ready

Revisions

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