diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-11 14:40:45 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-11 14:40:45 +0100 |
commit | eedaeb712c41686f79f5c7f096265a929a079114 (patch) | |
tree | 0d4f83d0191cec1ad35ca90f40fb8d007de7eb5b /bin | |
parent | e3d1b44aeaa2f274676ea21367a830838a063142 (diff) |
workload/simulation: provide error measures for duration and energy
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/workload.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/workload.py b/bin/workload.py index ef89b0d..e294b95 100755 --- a/bin/workload.py +++ b/bin/workload.py @@ -29,5 +29,9 @@ print(trace) result = pta.simulate(trace) print('Duration: ' + human_readable(result.duration, 's')) +if result.duration_mae: + print(u' ± {} / {:.0f}%'.format(human_readable(result.duration_mae, 's'), result.duration_mape)) print('Energy: ' + human_readable(result.energy, 'J')) +if result.energy_mae: + print(u' ± {} / {:.0f}%'.format(human_readable(result.energy_mae, 'J'), result.energy_mape)) print('Mean Power: ' + human_readable(result.mean_power, 'W')) |