diff options
author | Mark Wong | 2018-06-01 03:13:27 +0000 |
---|---|---|
committer | Mark Wong | 2018-06-01 03:13:27 +0000 |
commit | db094c62bbdd024127a399547f62c7ecda073bfd (patch) | |
tree | ab6e19d8c68a3ca1fddc7de24921694501e50bd8 | |
parent | 5a0383b32684f7d32f51ea5e5e4f87c9e564bd34 (diff) |
Fix calculation of metrics for pgbench results
-rw-r--r-- | client/benchmarks/pgbench.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/benchmarks/pgbench.py b/client/benchmarks/pgbench.py index ab4238f..01f681f 100644 --- a/client/benchmarks/pgbench.py +++ b/client/benchmarks/pgbench.py @@ -249,12 +249,12 @@ class PgBench(object): r.update({'run': i}) results[tag][scale][clients]['results'].append(r) - tps = [] - for result in results[tag][scale][clients]['results']: - tps.append(float(result['tps'])) - results[tag][scale][clients]['metric'] = mean(tps) - results[tag][scale][clients]['median'] = median(tps) - results[tag][scale][clients]['std'] = std(tps) + tps = [] + for result in results[tag][scale][clients]['results']: + tps.append(float(result['tps'])) + results[tag][scale][clients]['metric'] = mean(tps) + results[tag][scale][clients]['median'] = median(tps) + results[tag][scale][clients]['std'] = std(tps) self._results['pgbench'] = results return self._results |