Skip to content

Commit 8262761

Browse files
committed
Refine some build scripts and settings
1 parent 1d72404 commit 8262761

5 files changed

Lines changed: 116 additions & 79 deletions

File tree

ref_app/target/build/test_app_benchmarks.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright Christopher Kormanyos 2020 - 2024.
3+
# Copyright Christopher Kormanyos 2020 - 2025.
44
# Distributed under the Boost Software License,
55
# Version 1.0. (See accompanying file LICENSE_1_0.txt
66
# or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -22,7 +22,8 @@ mkdir -p bin
2222

2323
rm -f ./bin/*.*
2424

25-
echo run benchmarks with GCC=$GCC STD=$STD
25+
echo run benchmarks with $GCC and language standard $STD
26+
echo
2627

2728
$GCC -std=$STD -Wall -Werror -O2 -m64 -I./src/mcal/host -I./src -DAPP_BENCHMARK_TYPE=APP_BENCHMARK_TYPE_COMPLEX -DAPP_BENCHMARK_STANDALONE_MAIN ./src/app/benchmark/app_benchmark_complex.cpp -o ./bin/app_benchmark_complex.exe
2829
$GCC -std=$STD -Wall -Werror -O2 -m64 -I./src/mcal/host -I./src -DAPP_BENCHMARK_TYPE=APP_BENCHMARK_TYPE_CRC -DAPP_BENCHMARK_STANDALONE_MAIN ./src/app/benchmark/app_benchmark_crc.cpp -o ./bin/app_benchmark_crc.exe
@@ -49,6 +50,9 @@ fi
4950
$GCC -std=$STD -Wall -O2 -m64 -I./src/mcal/host -I./src -I../../cppalliance-decimal-root/include -I../../boost-root -DAPP_BENCHMARK_TYPE=APP_BENCHMARK_TYPE_NON_STD_DECIMAL -DAPP_BENCHMARK_STANDALONE_MAIN ./src/app/benchmark/app_benchmark_non_std_decimal.cpp -o ./bin/app_benchmark_non_std_decimal.exe
5051
$GCC -std=$STD -Wall -O2 -m64 -I./src/mcal/host -I./src -I../../cppalliance-crypt-root/include -I../../boost-root -DAPP_BENCHMARK_TYPE=APP_BENCHMARK_TYPE_BOOST_CRYPT_HASHER -DAPP_BENCHMARK_STANDALONE_MAIN ./src/app/benchmark/app_benchmark_boost_crypt_hasher.cpp -o ./bin/app_benchmark_boost_crypt_hasher.exe
5152

53+
echo check existences of exe-files
54+
echo
55+
5256
./bin/app_benchmark_complex.exe
5357
result_var_complex=$?
5458

@@ -142,6 +146,9 @@ fi
142146
echo "result_var_non_std_decimal : " "$result_var_non_std_decimal"
143147
echo "result_var_boost_crypt_hasher : " "$result_var_boost_crypt_hasher"
144148

149+
echo verify result_total
150+
echo
151+
145152
if [[ "$GCC" == "g++" ]]; then
146153
result_total=$((result_var_complex+result_var_crc+result_var_fast_math+result_var_filter+result_var_fixed_point+result_var_float+result_var_hash+result_var_none+result_var_pi_agm+result_var_pi_spigot+result_var_pi_spigot_single+$result_var_soft_double_h2f1+result_var_trapezoid_integral+result_var_wide_decimal+result_var_wide_integer+result_var_boost_math_cbrt_tgamma+result_var_boost_math_cyl_bessel_j+result_var_boost_multiprecision_cbrt+result_var_hash_sha256+result_var_ecc_generic_ecc+result_var_non_std_decimal+result_ls_boost_crypt_hasher))
147154
else

0 commit comments

Comments
 (0)