|
@@ -5,11 +5,11 @@ import os
|
|
|
|
|
|
def start(args):
|
|
|
setup_util.replace_text("snap/bench/cfg/db.cfg", "host=\".*\"", "host=\"" + args.database_host + "\"")
|
|
|
- subprocess.check_call("cabal install HDBC HDBC-mysql MonadCatchIO-transformers configurator json snap-core snap-server resource-pool", shell=True)
|
|
|
subprocess.check_call("cabal configure", shell=True, cwd="snap/bench")
|
|
|
- subprocess.check_call("cabal install", shell=True, cwd="snap/bench")
|
|
|
+ subprocess.check_call("cabal build", shell=True, cwd="snap/bench")
|
|
|
|
|
|
- subprocess.Popen("dist/build/snap-bench/snap-bench +RTS -N" + str(args.max_threads) + " > /dev/null", shell=True, cwd="snap/bench")
|
|
|
+ t = str(args.max_threads)
|
|
|
+ subprocess.Popen("dist/build/snap-bench/snap-bench +RTS -A" + t + "M -N" + t + " > /dev/null", shell=True, cwd="snap/bench")
|
|
|
return 0
|
|
|
|
|
|
def stop():
|