loopin

JavaScript performance comparison

Test case created

Preparation code

<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js"><script>
<script>
Benchmark.prototype.setup = function() {
    var rooms = _.range(1, 300);
    var events = _.range(1, 550);
   
    var obj = {}
};
</script>

Preparation code output