Overload Arguments in Function declaration vs Locally scoped variables

Edit on GitHub

Javascript Memory and Performance test when overloading arguments vs declaring local variables.

Setup

Tests

  • Overload Arguments in Function declaration

    (function overload(a,b,c){
    a=1;
    b=1:
    c=1;
    return a + b + c;
    })();
  • Locally scoped variables

    (function localscope(){
    var a = 1,b = 1, c =1;
    return a+b+c;
    })();