diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-08-06 04:42:42 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-08-06 04:42:42 +0200 |
| commit | b8564c77bc286dd9f8032db844cbcfaabf8ac65c (patch) | |
| tree | 7f299fc8ce4cfd479f481cf79cd58d079b2cb447 /scripts/internal/bench_oneshot.py | |
| parent | 146df37afd7e6b741dcd24e61e45a9068af58098 (diff) | |
| download | psutil-b8564c77bc286dd9f8032db844cbcfaabf8ac65c.tar.gz | |
fix benchmark script showing erroneous slowdown
Diffstat (limited to 'scripts/internal/bench_oneshot.py')
| -rwxr-xr-x | scripts/internal/bench_oneshot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/internal/bench_oneshot.py b/scripts/internal/bench_oneshot.py index 84b02d77..53ff4b80 100755 --- a/scripts/internal/bench_oneshot.py +++ b/scripts/internal/bench_oneshot.py @@ -110,7 +110,7 @@ def main(): if elapsed2 < elapsed1: print("speedup: +%.2fx" % (elapsed1 / elapsed2)) elif elapsed2 > elapsed1: - print("slowdown: -%.2fx" % (elapsed1 / elapsed2)) + print("slowdown: -%.2fx" % (elapsed2 / elapsed1)) else: print("same speed") |
