summaryrefslogtreecommitdiff
path: root/scripts/internal/bench_oneshot.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-08-06 04:42:42 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-08-06 04:42:42 +0200
commitb8564c77bc286dd9f8032db844cbcfaabf8ac65c (patch)
tree7f299fc8ce4cfd479f481cf79cd58d079b2cb447 /scripts/internal/bench_oneshot.py
parent146df37afd7e6b741dcd24e61e45a9068af58098 (diff)
downloadpsutil-b8564c77bc286dd9f8032db844cbcfaabf8ac65c.tar.gz
fix benchmark script showing erroneous slowdown
Diffstat (limited to 'scripts/internal/bench_oneshot.py')
-rwxr-xr-xscripts/internal/bench_oneshot.py2
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")