##############################################################################
# Copyright (c) 2017 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
##############################################################################
QPI: compute
description: sample performance index of computing

formula: weighted arithmetic mean

section:
- name: Integer
  weight: 0.3
  formula: geometric mean
  perftests:
    - name: dhrystone
      workloads:
        - single_cpu
        - multi_cpu
- name: Floating
  weight: 0.3
  formula: geometric mean
  perftests:
    - name: whetstone
      workloads:
        - single_cpu
        - multi_cpu
- name: Memory
  weight: 0.2
  formula: geometric mean
  perftests:
    - name: ramspeed
      workloads:
          - int: [add, average, copy, scale, triad]
          - float: [add, average, copy, scale, triad]
- name: DPI
  weight: 0.1
  formula: geometric mean
  perftests:
    - name: dpi
      workloads:
        - bps
        - pps
- name: SSL
  weight: 0.1
  formula: geometric mean
  perftests:
    - name: ssl
      workloads:
        - aes_128_cbc: [512, 1024, 2048, 4096]
        - rsa_sig: [16, 64, 256, 1024, 8192]