summaryrefslogtreecommitdiff
path: root/client/tests/tbench
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-13 00:01:28 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2007-10-13 00:01:28 +0000
commitd61d5d380f7abd2f0207b42eec10d398befe103a (patch)
tree4eeb4ebb511f27d5c2d75bec00def696431e7fe3 /client/tests/tbench
parent94d459f1581ae028f296977a0f81bcd81dba5d7b (diff)
run default tbench in multi-thread mode just like dbench.
From: kenchen@google.com Signed-off-by: Martin J. Bligh <mbligh@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@799 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'client/tests/tbench')
-rwxr-xr-xclient/tests/tbench/tbench.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/tests/tbench/tbench.py b/client/tests/tbench/tbench.py
index bf51b0cd..65a2aa60 100755
--- a/client/tests/tbench/tbench.py
+++ b/client/tests/tbench/tbench.py
@@ -13,7 +13,7 @@ class tbench(test.test):
system('./configure')
system('make')
- def execute(self, iterations = 1, args = '1'):
+ def execute(self, iterations = 1, args = count_cpus()):
# only supports combined server+client model at the moment
# should support separate I suppose, but nobody uses it
profilers = self.job.profilers
@@ -36,7 +36,7 @@ class tbench(test.test):
if pid: # parent
time.sleep(1)
client = self.srcdir + '/client.txt'
- args = '-c ' + client + ' ' + args
+ args = '-c ' + client + ' ' + '%s' % args
system(self.srcdir + '/tbench ' + args)
os.kill(pid, signal.SIGTERM) # clean up the server
else: # child