destructuring as params

JavaScript performance comparison

Test case created by svrakata

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  
  const test1 = function([a,b,c]) {
      console.log(a,b,c);
  };
  
  const test2 = function(a,b,c) {
      console.log(a,b,c);
  };

};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
with SA
test1([1,2,3]);
pending…
standart
test2(1,2,3);
pending…

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

Compare results of other browsers

0 Comments