mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
prep for future profiling in vstudio
This commit is contained in:
parent
40d1b5d2d0
commit
0f3baac667
@ -46,6 +46,9 @@ namespace mongo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace PerfTests {
|
namespace PerfTests {
|
||||||
|
|
||||||
|
const bool profiling = false;
|
||||||
|
|
||||||
typedef DBDirectClient DBClientType;
|
typedef DBDirectClient DBClientType;
|
||||||
//typedef DBClientConnection DBClientType;
|
//typedef DBClientConnection DBClientType;
|
||||||
|
|
||||||
@ -124,7 +127,7 @@ namespace PerfTests {
|
|||||||
virtual int expectationTimeMillis() { return -1; }
|
virtual int expectationTimeMillis() { return -1; }
|
||||||
|
|
||||||
// how long to run test. 0 is a sentinel which means just run the timed() method once and time it.
|
// how long to run test. 0 is a sentinel which means just run the timed() method once and time it.
|
||||||
virtual int howLongMillis() { return 5000; }
|
virtual int howLongMillis() { return profiling ? 60000 : 5000; }
|
||||||
|
|
||||||
/* override if your test output doesn't need that */
|
/* override if your test output doesn't need that */
|
||||||
virtual bool showDurStats() { return true; }
|
virtual bool showDurStats() { return true; }
|
||||||
@ -742,26 +745,31 @@ namespace PerfTests {
|
|||||||
cout
|
cout
|
||||||
<< "stats test rps------ time-- "
|
<< "stats test rps------ time-- "
|
||||||
<< dur::stats.curr->_CSVHeader() << endl;
|
<< dur::stats.curr->_CSVHeader() << endl;
|
||||||
add< Dummy >();
|
if( profiling ) {
|
||||||
add< TLS >();
|
add< Update1 >();
|
||||||
add< Malloc >();
|
}
|
||||||
add< Timer >();
|
else {
|
||||||
add< CTM >();
|
add< Dummy >();
|
||||||
add< KeyTest >();
|
add< TLS >();
|
||||||
add< Bldr >();
|
add< Malloc >();
|
||||||
add< StkBldr >();
|
add< Timer >();
|
||||||
add< BSONIter >();
|
add< CTM >();
|
||||||
add< BSONGetFields1 >();
|
add< KeyTest >();
|
||||||
add< BSONGetFields2 >();
|
add< Bldr >();
|
||||||
add< ChecksumTest >();
|
add< StkBldr >();
|
||||||
add< TaskQueueTest >();
|
add< BSONIter >();
|
||||||
add< InsertDup >();
|
add< BSONGetFields1 >();
|
||||||
add< Insert1 >();
|
add< BSONGetFields2 >();
|
||||||
add< InsertRandom >();
|
add< ChecksumTest >();
|
||||||
add< MoreIndexes<InsertRandom> >();
|
add< TaskQueueTest >();
|
||||||
add< Update1 >();
|
add< InsertDup >();
|
||||||
add< MoreIndexes<Update1> >();
|
add< Insert1 >();
|
||||||
add< InsertBig >();
|
add< InsertRandom >();
|
||||||
|
add< MoreIndexes<InsertRandom> >();
|
||||||
|
add< Update1 >();
|
||||||
|
add< MoreIndexes<Update1> >();
|
||||||
|
add< InsertBig >();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} myall;
|
} myall;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user