benchmarks/common_benchmarks.js
function() {
      console.log('start : init test : ' + bench.initFcts.length);
      for (let i = 0; i < bench.initFcts.length; i++) {
        console.log(
          'initializing test data ' + (i + 1) + '/' + bench.initFcts.length
        );
        if (bench.initFcts[i]) {
          bench.initFcts[i].call(this, bench.CONN.MARIADB.drv);
        }
      }
      this.currentNb = 0;
      console.log('initializing test data done');
    }
function() {
      console.log('start : init test : ' + bench.initFcts.length);
      for (let i = 0; i < bench.initFcts.length; i++) {
        console.log(
          'initializing test data ' + (i + 1) + '/' + bench.initFcts.length
        );
        if (bench.initFcts[i]) {
          bench.initFcts[i].call(this, bench.CONN.MARIADB.drv);
        }
      }
      this.currentNb = 0;
      console.log('initializing test data done');
    }
function ( ) { console . log ( 'start : init test : ' + bench . initFcts . length ) ; for ( let i = 0 ; i < bench . initFcts . length ; i ++ ) { console . log ( 'initializing test data ' + ( i + 1 ) + '/' + bench . initFcts . length ) ; if ( bench . initFcts [ i ] ) { bench . initFcts [ i ] . call ( this , bench . CONN . MARIADB . drv ) ; } } this . currentNb = 0 ; console . log ( 'initializing test data done' ) ; }
called when the suite starts running
called when the suite starts running