We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4a3ec commit cdd5bd2Copy full SHA for cdd5bd2
performance/time.js
@@ -1,7 +1,9 @@
1
// Check the processing time for each of the DB operations with load
2
var db = require('../lib/diskdb.js');
3
var fs = require('fs');
4
-db.connect('db', ['articles']);
+
5
+var path = process.cwd();
6
+db.connect(path + '/performance/db', ['articles']);
7
// remove the articles JSON if exists
8
db.articles.remove();
9
// reload collection
@@ -81,5 +83,4 @@ function getFilesizeInBytes(filename) {
81
83
return fileSizeInBytes + ' MB'
82
84
}
85
-
86
// run node time.js
0 commit comments