Add test case related to measure compute score and its energy consumption impact
[yardstick.git] / samples / energy.yaml
diff --git a/samples/energy.yaml b/samples/energy.yaml
new file mode 100755 (executable)
index 0000000..bc8f822
--- /dev/null
@@ -0,0 +1,53 @@
+##############################################################################\r
+# Copyright (c) 2019 Orange and others.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are made available under the terms of the Apache License, Version 2.0\r
+# which accompanies this distribution, and is available at\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+##############################################################################\r
+---\r
+# Sample benchmark task config file\r
+# Monitor energy consumption during a cpu test\r
+# Should be used inside test cases where UnixBench is replaced by other\r
+# scenario type. This enables to easily consider energy consumption as a\r
+# mandatory metric for any performance test\r
+\r
+schema: "yardstick:task:0.1"\r
+\r
+{% set target = target or "node5"%}\r
+{% set file = file or '/etc/yardstick/pod.yaml' %}\r
+{% set duree = 60 %}\r
+{% set intervalle = 5 %}\r
+scenarios:\r
+\r
+-\r
+  type: Energy\r
+  run_in_background: true\r
+  target: {{target}}.LF\r
+\r
+  runner:\r
+    type: Duration\r
+    duration: {{duree}}\r
+    interval: {{intervalle}}\r
+\r
+  sla:\r
+    action: monitor\r
+\r
+-\r
+  type: UnixBench\r
+  options:\r
+    run_mode: 'verbose'\r
+    test_type: 'dhry2reg'\r
+  host: {{target}}.LF\r
+\r
+  runner:\r
+    type: Iteration\r
+    iterations: 1\r
+    interval: 1\r
+\r
+\r
+context:\r
+  type: Node\r
+  name: LF\r
+  file: {{file}}\r