Skip to content

Commit

Permalink
Corrected update and remove benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
louischatriot committed Jun 4, 2013
1 parent 8f82ab3 commit c7871c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions benchmarks/remove.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ async.waterfall([
, async.apply(commonUtilities.removeDocs, { multi: false }, d, n, profiler)

// Test with multiple documents
, async.apply(commonUtilities.prepareDb, benchDb)
, function (cb) { d.loadDatabase(cb); }
, function (cb) { d.remove({}, { multi: true }, function () { return cb(); }); }
, async.apply(commonUtilities.insertDocs, d, n, profiler)
, function (cb) { profiler.step('MULTI: TRUE'); return cb(); }
, async.apply(commonUtilities.removeDocs, { multi: true }, d, n, profiler)
Expand Down
3 changes: 1 addition & 2 deletions benchmarks/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ async.waterfall([
, async.apply(commonUtilities.updateDocs, { multi: false }, d, n, profiler)

// Test with multiple documents
, async.apply(commonUtilities.prepareDb, benchDb)
, function (cb) { d.loadDatabase(cb); }
, function (cb) { d.remove({}, { multi: true }, function (err) { return cb(); }); }
, async.apply(commonUtilities.insertDocs, d, n, profiler)
, function (cb) { profiler.step('MULTI: TRUE'); return cb(); }
, async.apply(commonUtilities.updateDocs, { multi: true }, d, n, profiler)
Expand Down

0 comments on commit c7871c8

Please sign in to comment.