benchmark/benchmark.js
/**
 * Executes steps within a benchmark group, pausing in between steps.
 * Once the benchmark group steps are depleted, we initiate next group.
 * @param {*} steps 
 */
Executes steps within a benchmark group, pausing in between steps.
Once the benchmark group steps are depleted, we initiate next group.
@param {*} steps
Executes steps within a benchmark group pausing in between steps . Once the benchmark group steps are depleted we initiate next group . @param { * } steps
function execSteps(steps) {
  if (steps.length === 0) {
    setTimeout(execGroups, 4000);
    return;
  }
  let s = steps.shift();
  s();
  setTimeout(() => { execSteps(steps); }, 1000);
}
function execSteps ( steps ) { if ( steps . length === 0 ) { setTimeout ( execGroups , 4000 ) ; return ; } let s = steps . shift ( ) ; s ( ) ; setTimeout ( ( ) => { execSteps ( steps ) ; } , 1000 ) ; }
Executes steps within a benchmark group, pausing in between steps.
Executes steps within a benchmark group pausing in between steps .
// if we are finished with this group's steps... // wait a few seconds in between benchmark groups