summaryrefslogtreecommitdiff
path: root/bin/workload.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-12-11 14:40:45 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-12-11 14:40:45 +0100
commiteedaeb712c41686f79f5c7f096265a929a079114 (patch)
tree0d4f83d0191cec1ad35ca90f40fb8d007de7eb5b /bin/workload.py
parente3d1b44aeaa2f274676ea21367a830838a063142 (diff)
workload/simulation: provide error measures for duration and energy
Diffstat (limited to 'bin/workload.py')
-rwxr-xr-xbin/workload.py4
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'))