+++ /dev/null
-##############################################################################
-# Copyright (c) 2016 ZTE Corporation 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
-##############################################################################
-title: compute
-description: sample performance index of computing
-formula: weighted arithmetic mean
-sections:
-- name: Integer
- weight: 0.3
- formula: geometric mean
- metrics:
- - dhrystone.yaml
-- name: Float
- weight: 0.3
- formula: geometric mean
- metrics:
- - whetstone.yaml
-- name: Memory
- weight: 0.2
- formula: geometric mean
- metrics:
- - ramspeed.yaml
-- name: DPI
- weight: 0.1
- formula: geometric mean
- metrics:
- - dpi.yaml
-- name: SSL
- weight: 0.1
- formula: geometric mean
- metrics:
- - ssl.yaml
'system_info': sysinfo,
'sections': section_results,
'spec': "https://git.opnfv.org/qtip/tree/resources/QPI/compute.yaml",
- 'baseline': "https://git.opnfv.org/qtip/tree/resources/QPI/compute-baseline.json"
+ 'baseline': "https://git.opnfv.org/qtip/tree/resources/baselines/compute.json"
}
return results
ROOT_DIR = path.join(path.dirname(__file__), path.pardir, path.pardir,
- 'benchmarks')
+ 'resources')
class FileLoader(BaseLoader):
from yaml_file import YamlFileLoader
+from qtip.base.constant import FormulaName
from qtip.base.constant import SpecProp
from qtip.util.formula import Formula
class Section(object):
def __init__(self, content, paths=None):
self.name = content[SpecProp.NAME]
- self.weight = content[SpecProp.WEIGHT]
- self.formula = Formula(content[SpecProp.FORMULA])
+ self.weight = content.get(SpecProp.WEIGHT, None)
+ self.formula = Formula(content.get(SpecProp.FORMULA, FormulaName.ARITHMETIC_MEAN))
floating: "{{ qtip_results }}/arithmetic/metrics.json"
sysinfo: "{{ qtip_results }}/sysinfo/condition.json"
spec: "{{ qtip_resources }}/QPI/compute.yaml"
- baseline: "{{ qtip_resources }}/QPI/compute-baseline.json"
+ baseline: "{{ qtip_resources }}/baselines/compute.json"
dest: "{{ qtip_results }}/compute.json"
delegate_to: localhost
'system_info': info,
'sections': [section_result],
'spec': "https://git.opnfv.org/qtip/tree/resources/QPI/compute.yaml",
- 'baseline': "https://git.opnfv.org/qtip/tree/resources/QPI/compute-baseline.json",
+ 'baseline': "https://git.opnfv.org/qtip/tree/resources/baselines/compute.json",
}