The arguments object (v18)

Revision 18 of this benchmark created by arusakov on


Description

How slow is the use of arguments?

Preparation HTML

<script>
  function a() {
   return arguments[0] + arguments[1] + arguments[2];
  }
  function b(arg1, arg2, arg3) {
   return arg1 + arg2 + arg3;
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
arguments
a(1, 2, 3);
ready
regular
b(1, 2, 3);
ready

Revisions

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