|
@@ -4,11 +4,10 @@ import setup_util
|
|
|
|
|
|
def start(args, logfile, errfile, cwd='wt'):
|
|
def start(args, logfile, errfile, cwd='wt'):
|
|
setup_util.replace_text("wt/benchmark.cpp", "INSERT_DB_HOST_HERE", args.database_host);
|
|
setup_util.replace_text("wt/benchmark.cpp", "INSERT_DB_HOST_HERE", args.database_host);
|
|
- subprocess.check_call('g++ -O3 -DNDEBUG -DBENCHMARK_USE_POSTGRES -std=c++0x -L/usr/local/lib -I/usr/local/include -o benchmark_postgres.wt benchmark.cpp -lwt -lwthttp -lwtdbo -lwtdbopostgres -lboost_thread', shell=True, cwd=cwd, stderr=errfile, stdout=logfile)
|
|
|
|
- os.environ['LD_LIBRARY_PATH'] = '/usr/local/lib:' + os.environ.get('LD_LIBRARY_PATH', '.')
|
|
|
|
|
|
+ subprocess.check_call('g++-4.8 -O3 -DNDEBUG -DBENCHMARK_USE_POSTGRES -std=c++0x -L${BOOST_LIB} -I${BOOST_INC} -L${WT_LIB} -I${WT_INC} -o benchmark_postgres.wt benchmark.cpp -lwt -lwthttp -lwtdbo -lwtdbopostgres -lboost_thread', shell=True, cwd=cwd, stderr=errfile, stdout=logfile)
|
|
subprocess.Popen(['./benchmark_postgres.wt',
|
|
subprocess.Popen(['./benchmark_postgres.wt',
|
|
'-c', 'wt_config.xml',
|
|
'-c', 'wt_config.xml',
|
|
- '-t', str(args.max_threads * 4),
|
|
|
|
|
|
+ '-t', str(args.max_threads),
|
|
'--docroot', '.',
|
|
'--docroot', '.',
|
|
'--http-address', '0.0.0.0',
|
|
'--http-address', '0.0.0.0',
|
|
'--http-port', '8080',
|
|
'--http-port', '8080',
|