aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Ogden <benie.ogden@linaro.org>2014-06-30 16:58:00 +0100
committerBernard Ogden <benie.ogden@linaro.org>2014-06-30 16:58:00 +0100
commit100e3a553280db91087db5510170434f6ea4c4e9 (patch)
treeb73bae63fe63f69f46e431f1237c0b1374ba47b9
parentd4093a0f60a38b94ac7c52c683ce6ee4f6969cff (diff)
Some cleanup in step code
Untested
-rw-r--r--scripts/bench.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/scripts/bench.py b/scripts/bench.py
index fe382d2..8caf050 100644
--- a/scripts/bench.py
+++ b/scripts/bench.py
@@ -137,18 +137,13 @@ def run_top(cache):
global build
build = args.prefix
- # Test all powers of 2
- step1 = 2.0
- # Test intermediate powers of 1.4
- step2 = 1.4
-
bytes = []
- for step in [step1, step2]:
- if step:
- # Figure out how many steps get us up to the top
- steps = int(round(math.log(args.limit) / math.log(step)))
- bytes.extend([int(step**x) for x in range(0, steps+1)])
+ #Test powers of 2.0, 1.4
+ for step in [2.0, 1.4]:
+ # Figure out how many steps get us up to the top
+ steps = int(round(math.log(args.limit) / math.log(step)))
+ bytes.extend([int(step**x) for x in range(0, steps+1)])
run_many(cache, args.variants, bytes, args.functions)