Null initialisation in loop

Benchmark created by carrilho on


Description

<script> Benchmark.prototype.setup = function() { var a, b, c ,d, e; }; </script>

Test runner

Ready to run.

Testing in
TestOps/sec
single
for(var i = 0; i < 20; i++){
   a = null;
   b = null;
   c = null;
   d = null;
   e = null;
}
ready
multiple
for(var i = 0; i < 20; i++){
   a =  b = c = d = e = null;
}
ready

Revisions

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

  • Revision 1: published by carrilho on