1# Copyright 2016 Google Inc. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS-IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# This file is a simplified version of fruit_wiki_benchs_{fruit,boost_di}.yml used to debug benchmarking code.
16# When using this, the benchmarks will run much faster, but the results will be unreliable and incomplete.
17
18global:
19  max_runs: 20
20  max_hours_per_combination: 2
21
22# These values are ignored, they are here just to be referenced below.
23constants:
24  compilers: &compilers
25    - "g++-9"
26    - "clang++-10"
27  num_classes: &num_classes
28    - 100
29    - 250
30    - 1000
31
32benchmarks:
33  - name:
34    - "new_delete_run_time"
35    - "simple_di_compile_time"
36    - "simple_di_compile_memory"
37    - "simple_di_incremental_compile_time"
38    - "simple_di_run_time"
39    - "simple_di_startup_time"
40    - "simple_di_executable_size"
41    - "simple_di_with_interfaces_compile_memory"
42    - "simple_di_with_interfaces_compile_time"
43    - "simple_di_with_interfaces_incremental_compile_time"
44    - "simple_di_with_interfaces_run_time"
45    - "simple_di_with_interfaces_startup_time"
46    - "simple_di_with_interfaces_executable_size"
47    - "simple_di_with_interfaces_and_new_delete_compile_memory"
48    - "simple_di_with_interfaces_and_new_delete_compile_time"
49    - "simple_di_with_interfaces_and_new_delete_incremental_compile_time"
50    - "simple_di_with_interfaces_and_new_delete_run_time"
51    - "simple_di_with_interfaces_and_new_delete_startup_time"
52    - "simple_di_with_interfaces_and_new_delete_executable_size"
53    loop_factor: 1.0
54    num_classes: *num_classes
55    compiler: *compilers
56    cxx_std: "c++11"
57    additional_cmake_args:
58      - []
59    benchmark_generation_flags:
60      - []
61
62  - name:
63    - "simple_di_executable_size_without_exceptions_and_rtti"
64    - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
65    - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
66    loop_factor: 1.0
67    num_classes: *num_classes
68    compiler: *compilers
69    cxx_std: "c++11"
70    additional_cmake_args:
71      - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
72    benchmark_generation_flags:
73      - []
74