summaryrefslogtreecommitdiff
path: root/benchmark-cmd
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-01-20 09:18:19 +0000
committerLars Wirzenius <liw@liw.fi>2012-01-20 09:18:19 +0000
commit4d20737d6999993d2759972473d7f19a9272cf07 (patch)
treeb95b313ba9906f0bb38bff542905514b2d0b9c36 /benchmark-cmd
parentd00e022642237ad9afffb623428153efd66e1e0a (diff)
downloadextrautils-4d20737d6999993d2759972473d7f19a9272cf07.tar.gz
Fix real vs user time, and drop pointless elapsed time
Thanks to Kamal Mostafa <kamal@debian.org> for pointing out the problem.
Diffstat (limited to 'benchmark-cmd')
-rwxr-xr-xbenchmark-cmd5
1 files changed, 2 insertions, 3 deletions
diff --git a/benchmark-cmd b/benchmark-cmd
index 0a50654..ad5da31 100755
--- a/benchmark-cmd
+++ b/benchmark-cmd
@@ -85,11 +85,10 @@ class Benchmarker(cliapp.Application):
def process_args(self, args):
results = Table()
- results.add_column('real', '(s)', '%.1f')
results.add_column('user', '(s)', '%.1f')
results.add_column('system', '(s)', '%.1f')
+ results.add_column('real', '(s)', '%.1f')
results.add_column('max RSS', '(KiB)', '%d')
- results.add_column('elapsed', '(s)', '%.1f')
results.add_column('cmd', '', '%-0s', left=True)
commands = self.settings['command']
@@ -157,7 +156,7 @@ class Benchmarker(cliapp.Application):
real = fields[2]
maxrss = fields[3]
elapsed = fields[4]
- return user, system, real, maxrss, elapsed
+ return user, system, real, maxrss
Benchmarker().run()