summaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorsuyambulingamrm <suyambu.rm@samsung.com>2014-07-24 20:38:33 +0530
committersuyambulingamrm <suyambu.rm@samsung.com>2014-07-24 20:38:33 +0530
commit3f6e12671c1a4515712b289322402f210d1b8970 (patch)
tree0c95ca479f394ffec1b2d94a9bb2dc25a1e5a0a8
parent3a4dc0ab99e92b1d354407ffae113e6371d2a36b (diff)
Issue #127. Update canvas_perf script to compute score similar to flashcanvas JS app.
-rwxr-xr-xutils/canvas_perf5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/canvas_perf b/utils/canvas_perf
index 2826624..4e051b2 100755
--- a/utils/canvas_perf
+++ b/utils/canvas_perf
@@ -62,12 +62,13 @@ def execute(command):
results = []
+iterations = 100
for testcase in perfdefs:
cmd = [ CASKBENCH,
'-D', 'skia',
'-w', '480',
'-h', '480',
- '-i', '1',
+ '-i', str(iterations),
'-s', str(testcase[1]),
'-j',
'-o', 'output.json',
@@ -84,7 +85,7 @@ for testcase in perfdefs:
with open('output.json') as file:
result = json.load(file)[0]
- value = result["median run time (s)"]*1000.0
+ value = testcase[1] / (result["average run time (s)"]*1000)
ratio = value / testcase[2]
results.append({