Answers for "test load function benchmark javascript"

1

test load function benchmark javascript

var iterations = 1000000;
console.time('Function #1');
for(var i = 0; i < iterations; i++ ){
    functionOne();
};
console.timeEnd('Function #1')

console.time('Function #2');
for(var i = 0; i < iterations; i++ ){
    functionTwo();
};
console.timeEnd('Function #2')
Posted by: Guest on May-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language