bench # threads can be passed at cmd line as first arg

This commit is contained in:
gabime
2014-11-04 02:30:48 +02:00
parent 5d3025322f
commit 29d1790f98
4 changed files with 17 additions and 7 deletions

View File

@@ -36,10 +36,14 @@ void init()
using namespace std;
int main(int, char*[])
int main(int argc, char* argv[])
{
int thread_count = 10;
if(argc > 1)
thread_count = atoi(argv[1]);
int howmany = 1000000;
init();
logging::add_common_attributes();