diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:39:21 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-07-18 18:47:06 +0530 |
| commit | ff92336f5afcf3a58a28b44a115dd2bee6a0928a (patch) | |
| tree | 5f0ab28ddb8132fda0f35fc21f48ae6ac6b18900 | |
| parent | 46c777096b41f20389b732b87e5b81268a16bf68 (diff) | |
Issue #125. Load output from a json file rather than stdout in flash canvas script.
| -rwxr-xr-x | utils/canvas_perf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/canvas_perf b/utils/canvas_perf index 5fbce89..2826624 100755 --- a/utils/canvas_perf +++ b/utils/canvas_perf @@ -80,7 +80,10 @@ for testcase in perfdefs: print(' '.join(cmd)) json_output = execute(cmd) print(json_output) - result = json.loads(json_output)[0] + + with open('output.json') as file: + result = json.load(file)[0] + value = result["median run time (s)"]*1000.0 ratio = value / testcase[2] |