function runFrom(i) {
    if (i === n) {   // Finished
      var opsPerSecond = Math.floor(1000* n / profiler.elapsedSinceLastStep());
      console.log("===== RESULT (insert) ===== " + opsPerSecond + " ops/s");
      profiler.step('Finished inserting ' + n + ' docs');
      profiler.insertOpsPerSecond = opsPerSecond;
      return cb();
    }

    d.insert({ docNumber: order[i] }, function (err) {
      executeAsap(function () {
        runFrom(i + 1);
      });
    });
  }
Insert a certain number of documents for testing