aboutsummaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2020-04-05 19:23:52 -0700
committerMarco Poletti <poletti.marco@gmail.com>2020-04-05 19:23:52 -0700
commitf99dd9b4ec1aa663f7a5c871eb8660df38d51189 (patch)
treea0833330b5362ab3e84eaecf08eb702a424f559f /extras
parentabeb3ad86eda11420568312c5d0d5778868b426d (diff)
downloadgoogle-fruit-f99dd9b4ec1aa663f7a5c871eb8660df38d51189.tar.gz
Set the CMake flags needed to run benchs without exceptions/RTTI, otherwise they fail to build.
Diffstat (limited to 'extras')
-rw-r--r--extras/benchmark/suites/debug.yml58
-rw-r--r--extras/benchmark/suites/fruit_full.yml25
-rw-r--r--extras/benchmark/suites/fruit_mostly_full.yml12
-rw-r--r--extras/benchmark/suites/simple_di_full.yml17
-rw-r--r--extras/benchmark/suites/simple_di_mostly_full.yml17
5 files changed, 114 insertions, 15 deletions
diff --git a/extras/benchmark/suites/debug.yml b/extras/benchmark/suites/debug.yml
index d185f3c..1d18469 100644
--- a/extras/benchmark/suites/debug.yml
+++ b/extras/benchmark/suites/debug.yml
@@ -47,19 +47,16 @@ benchmarks:
- "simple_di_run_time"
- "simple_di_startup_time"
- "simple_di_executable_size"
- - "simple_di_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_compile_time"
- "simple_di_with_interfaces_incremental_compile_time"
- "simple_di_with_interfaces_run_time"
- "simple_di_with_interfaces_startup_time"
- "simple_di_with_interfaces_executable_size"
- - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_and_new_delete_compile_time"
- "simple_di_with_interfaces_and_new_delete_incremental_compile_time"
- "simple_di_with_interfaces_and_new_delete_run_time"
- "simple_di_with_interfaces_and_new_delete_startup_time"
- "simple_di_with_interfaces_and_new_delete_executable_size"
- - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
loop_factor: 0.01
num_classes:
- 100
@@ -71,13 +68,26 @@ benchmarks:
- []
- name:
+ - "simple_di_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
+ loop_factor: 0.01
+ num_classes:
+ - 100
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
+
+ - name:
- "fruit_compile_time"
- "fruit_incremental_compile_time"
- "fruit_run_time"
- "fruit_startup_time"
- "fruit_startup_time_with_normalized_component"
- "fruit_executable_size"
- - "fruit_executable_size_without_exceptions_and_rtti"
loop_factor: 0.01
num_classes:
- 100
@@ -91,13 +101,26 @@ benchmarks:
- []
- name:
+ - "fruit_executable_size_without_exceptions_and_rtti"
+ loop_factor: 0.01
+ num_classes:
+ - 100
+ compiler: *gcc
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ - ['-DFRUIT_USES_BOOST=False', '-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ - ["-DBUILD_SHARED_LIBS=False", '-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
+
+ - name:
- "fruit_compile_time"
- "fruit_incremental_compile_time"
- "fruit_run_time"
- "fruit_startup_time"
- "fruit_startup_time_with_normalized_component"
- "fruit_executable_size"
- - "fruit_executable_size_without_exceptions_and_rtti"
loop_factor: 0.01
num_classes:
- 100
@@ -109,12 +132,23 @@ benchmarks:
- []
- name:
+ - "fruit_executable_size_without_exceptions_and_rtti"
+ loop_factor: 0.01
+ num_classes:
+ - 100
+ compiler: *clang
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
+
+ - name:
- "boost_di_compile_time"
- "boost_di_incremental_compile_time"
- "boost_di_run_time"
- "boost_di_startup_time"
- "boost_di_executable_size"
- - "boost_di_executable_size_without_exceptions_and_rtti"
loop_factor: 0.01
num_classes:
- 100
@@ -124,3 +158,15 @@ benchmarks:
- []
benchmark_generation_flags:
- []
+
+ - name:
+ - "boost_di_executable_size_without_exceptions_and_rtti"
+ loop_factor: 0.01
+ num_classes:
+ - 100
+ compiler: *compilers
+ cxx_std: "c++14"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
diff --git a/extras/benchmark/suites/fruit_full.yml b/extras/benchmark/suites/fruit_full.yml
index ca885b2..84a604e 100644
--- a/extras/benchmark/suites/fruit_full.yml
+++ b/extras/benchmark/suites/fruit_full.yml
@@ -47,7 +47,6 @@ benchmarks:
- "fruit_startup_time"
- "fruit_startup_time_with_normalized_component"
- "fruit_executable_size"
- - "fruit_executable_size_without_exceptions_and_rtti"
loop_factor: 1.0
num_classes: *num_classes
compiler: *compilers
@@ -58,13 +57,23 @@ benchmarks:
- []
- name:
+ - "fruit_executable_size_without_exceptions_and_rtti"
+ loop_factor: 1.0
+ num_classes: *num_classes
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
+
+ - name:
- "fruit_compile_time"
- "fruit_incremental_compile_time"
- "fruit_run_time"
- "fruit_startup_time"
- "fruit_startup_time_with_normalized_component"
- "fruit_executable_size"
- - "fruit_executable_size_without_exceptions_and_rtti"
loop_factor: 1.0
num_classes: *num_classes
compiler: *compilers
@@ -74,3 +83,15 @@ benchmarks:
- ["-DBUILD_SHARED_LIBS=False"]
benchmark_generation_flags:
- []
+
+ - name:
+ - "fruit_executable_size_without_exceptions_and_rtti"
+ loop_factor: 1.0
+ num_classes: *num_classes
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DFRUIT_USES_BOOST=False', '-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ - ["-DBUILD_SHARED_LIBS=False", '-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
diff --git a/extras/benchmark/suites/fruit_mostly_full.yml b/extras/benchmark/suites/fruit_mostly_full.yml
index 41cc5e0..cfdeeb3 100644
--- a/extras/benchmark/suites/fruit_mostly_full.yml
+++ b/extras/benchmark/suites/fruit_mostly_full.yml
@@ -44,7 +44,6 @@ benchmarks:
- "fruit_startup_time"
- "fruit_startup_time_with_normalized_component"
- "fruit_executable_size"
- - "fruit_executable_size_without_exceptions_and_rtti"
loop_factor: 1.0
num_classes: *num_classes
compiler: *compilers
@@ -53,3 +52,14 @@ benchmarks:
- []
benchmark_generation_flags:
- []
+
+ - name:
+ - "fruit_executable_size_without_exceptions_and_rtti"
+ loop_factor: 1.0
+ num_classes: *num_classes
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
diff --git a/extras/benchmark/suites/simple_di_full.yml b/extras/benchmark/suites/simple_di_full.yml
index 1b88d34..8deaaa7 100644
--- a/extras/benchmark/suites/simple_di_full.yml
+++ b/extras/benchmark/suites/simple_di_full.yml
@@ -37,19 +37,16 @@ benchmarks:
- "simple_di_run_time"
- "simple_di_startup_time"
- "simple_di_executable_size"
- - "simple_di_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_compile_time"
- "simple_di_with_interfaces_incremental_compile_time"
- "simple_di_with_interfaces_run_time"
- "simple_di_with_interfaces_startup_time"
- "simple_di_with_interfaces_executable_size"
- - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_and_new_delete_compile_time"
- "simple_di_with_interfaces_and_new_delete_incremental_compile_time"
- "simple_di_with_interfaces_and_new_delete_run_time"
- "simple_di_with_interfaces_and_new_delete_startup_time"
- "simple_di_with_interfaces_and_new_delete_executable_size"
- - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
loop_factor: 1.0
num_classes:
- 100
@@ -59,3 +56,17 @@ benchmarks:
- []
benchmark_generation_flags:
- []
+
+ - name:
+ - "simple_di_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
+ loop_factor: 1.0
+ num_classes:
+ - 100
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []
diff --git a/extras/benchmark/suites/simple_di_mostly_full.yml b/extras/benchmark/suites/simple_di_mostly_full.yml
index 125feae..0ce91d1 100644
--- a/extras/benchmark/suites/simple_di_mostly_full.yml
+++ b/extras/benchmark/suites/simple_di_mostly_full.yml
@@ -35,19 +35,16 @@ benchmarks:
- "simple_di_run_time"
- "simple_di_startup_time"
- "simple_di_executable_size"
- - "simple_di_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_compile_time"
- "simple_di_with_interfaces_incremental_compile_time"
- "simple_di_with_interfaces_run_time"
- "simple_di_with_interfaces_startup_time"
- "simple_di_with_interfaces_executable_size"
- - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
- "simple_di_with_interfaces_and_new_delete_compile_time"
- "simple_di_with_interfaces_and_new_delete_incremental_compile_time"
- "simple_di_with_interfaces_and_new_delete_run_time"
- "simple_di_with_interfaces_and_new_delete_startup_time"
- "simple_di_with_interfaces_and_new_delete_executable_size"
- - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
loop_factor: 1.0
num_classes:
- 100
@@ -57,3 +54,17 @@ benchmarks:
- []
benchmark_generation_flags:
- []
+
+ - name:
+ - "simple_di_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_executable_size_without_exceptions_and_rtti"
+ - "simple_di_with_interfaces_and_new_delete_executable_size_without_exceptions_and_rtti"
+ loop_factor: 1.0
+ num_classes:
+ - 100
+ compiler: *compilers
+ cxx_std: "c++11"
+ additional_cmake_args:
+ - ['-DCMAKE_CXX_FLAGS=-fno-exceptions -fno-rtti']
+ benchmark_generation_flags:
+ - []