aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/spec
diff options
context:
space:
mode:
Diffstat (limited to 'qtip/spec')
-rw-r--r--qtip/spec/__init__.py0
-rw-r--r--qtip/spec/metric.py16
-rw-r--r--qtip/spec/qpi.py18
3 files changed, 34 insertions, 0 deletions
diff --git a/qtip/spec/__init__.py b/qtip/spec/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/qtip/spec/__init__.py
diff --git a/qtip/spec/metric.py b/qtip/spec/metric.py
new file mode 100644
index 00000000..e9c70547
--- /dev/null
+++ b/qtip/spec/metric.py
@@ -0,0 +1,16 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+from qtip.base.benchmark import Benchmark
+
+
+class MetricSpec(Benchmark):
+ """metrics in QTIP are categorized by performance test tools, such as
+ dhrystone, whetstone and etc"""
+ DEFAULT_DIR = 'metrics'
diff --git a/qtip/spec/qpi.py b/qtip/spec/qpi.py
new file mode 100644
index 00000000..b7d7aa02
--- /dev/null
+++ b/qtip/spec/qpi.py
@@ -0,0 +1,18 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+from qtip.base.benchmark import Benchmark
+
+
+class QPISpec(Benchmark):
+ """
+ a QPI specification defines how to calculate a performance index from
+ collected metrics.
+ """
+ DEFAULT_DIR = 'QPI'