test_rpy_fib.yml 3.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright 2017 The Australian National University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

15 16
fib:
  iterations: 50
John Zhang's avatar
John Zhang committed
17 18 19
  benchmark:
    name: micro/fib
    args:
20 21
      - 10  # scale factor
      - 35
John Zhang's avatar
John Zhang committed
22
  callback:
23
    name: clock
John Zhang's avatar
John Zhang committed
24 25 26
    param: "6"
  environ:
    PYPY_USESSION_DIR: example  # controls where PyPy puts usession directory
27 28 29 30 31 32 33 34 35 36
  tasks:
    rpyc_O0:
      language:
        name: rpython
        backend: c
      source: targetfib.py
      compiler:
        flags:
          - --gc=none
      environ:
Zixian Cai's avatar
Zixian Cai committed
37
        PYPY_C_CLANG_OPT_FLAG: -O0
38 39 40 41 42 43 44 45 46 47
        PYPY_USESSION_BASENAME: fib_rpyc_O0
    rpyc_O1:
      language:
        name: rpython
        backend: c
      source: targetfib.py
      compiler:
        flags:
          - --gc=none
      environ:
Zixian Cai's avatar
Zixian Cai committed
48
        PYPY_C_CLANG_OPT_FLAG: -O1
49 50 51 52 53 54 55 56 57 58
        PYPY_USESSION_BASENAME: fib_rpyc_O1
    rpyc_O2:
      language:
        name: rpython
        backend: c
      source: targetfib.py
      compiler:
        flags:
          - --gc=none
      environ:
Zixian Cai's avatar
Zixian Cai committed
59
        PYPY_C_CLANG_OPT_FLAG: -O2
60 61 62 63 64 65 66 67 68 69
        PYPY_USESSION_BASENAME: fib_rpyc_O2
    rpyc_O3:
      language:
        name: rpython
        backend: c
      source: targetfib.py
      compiler:
        flags:
          - --gc=none
      environ:
Zixian Cai's avatar
Zixian Cai committed
70
        PYPY_C_CLANG_OPT_FLAG: -O3
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
        PYPY_USESSION_BASENAME: fib_rpyc_O3
    rpyzebu:
      language:
        name: rpython
        backend: mu
        impl: zebu
      source: targetfib.py
      compiler:
        pypydir: $PYPY_MU
      environ:
        ZEBU_BUILD: release
        PYPY_USESSION_DIR: example
        PYPY_USESSION_BASENAME: fib_rpyzebu
    c_O0:
      language: c
      source: fib.c
      compiler:
        flags:
          - -O0
    c_O1:
      language: c
      source: fib.c
      compiler:
        flags:
          - -O1
    c_O2:
      language: c
      source: fib.c
      compiler:
        flags:
          - -O2
    c_O3:
      language: c
      source: fib.c
      compiler:
        flags:
          - -O3
Zixian Cai's avatar
Zixian Cai committed
108 109 110 111 112 113
    c_wasm_O3:
      language: wasm
      source: fib.c
      compiler:
        flags:
          - -O3
Zixian Cai's avatar
Zixian Cai committed
114 115 116 117 118 119 120 121 122
    mu_slow:
      language:
        name: mu
        impl: zebu
      source: build_fib.c
    mu_fast:
      language:
        name: mu
        impl: zebu
123 124 125 126
      source: build_fib.c
      compiler:
        flags:
          - -DBUILD_FIB_FAST
Zixian Cai's avatar
Zixian Cai committed
127 128 129 130 131 132 133 134 135 136 137 138 139
  compare:
    - - c_O0
      - c_O3
    - - c_O0
      - rpyc_O3
    - - c_O3
      - rpyc_O3
    - - c_O0
      - rpyzebu
    - - c_O3
      - rpyzebu
    - - rpyc_O3
      - rpyzebu
Zixian Cai's avatar
Zixian Cai committed
140 141 142 143 144 145 146 147 148 149
    - - c_O0
      - mu_fast
    - - c_O3
      - mu_fast
    - - c_O0
      - mu_slow
    - - c_O3
      - mu_fast
    - - mu_fast
      - mu_slow