blob: 7bc60bfcd610370b9ab7c2fdf441a2f8e38734fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
SlowWeeklyMongod = function(name) {
this.name = name;
this.start = new Date();
this.conn = MongoRunner.runMongod({smallfiles: "", nojournal: ""});
this.port = this.conn.port;
};
SlowWeeklyMongod.prototype.getDB = function(name) {
return this.conn.getDB(name);
};
SlowWeeklyMongod.prototype.stop = function() {
MongoRunner.stopMongod(this.conn);
var end = new Date();
print("slowWeekly test: " + this.name + " completed successfully in " +
((end.getTime() - this.start.getTime()) / 1000) + " seconds");
};
|