File tree Expand file tree Collapse file tree
ref_app/src/app/benchmark Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// /////////////////////////////////////////////////////////////////////////////
2- // Copyright Christopher Kormanyos 2023 - 2024 .
2+ // Copyright Christopher Kormanyos 2023 - 2025 .
33// Distributed under the Boost Software License,
44// Version 1.0. (See accompanying file LICENSE_1_0.txt
55// or copy at http://www.boost.org/LICENSE_1_0.txt)
2424#include < app/benchmark/app_benchmark_detail.h>
2525
2626using builtin_float_type = double ;
27- using decimal_float_type = boost::decimal::decimal64 ;
27+ using decimal_float_type = boost::decimal::decimal64_t ;
2828
2929// using arithmetic_float_type = builtin_float_type;
3030using arithmetic_float_type = decimal_float_type;
@@ -52,12 +52,15 @@ target-specific flags
5252-mno-unaligned-access
5353-mno-long-calls
5454
55+ // TBD: These are very old numbers. Today's decimal is expected
56+ // to be significantly speedier. Update these numbers sometime.
57+
5558
5659| Type | runtime [us] | relative | code-size [kb] |
5760|--------------------------------|---------------|------------|-------------------|
5861| double (built-in, no FPU) | 22 | 1.0 | 5.6 |
5962| ::math::softfloat::float64_t | 27 | 1.2 | 8.5 |
60- | boost::decimal::decimal64 | 490 | 22 | 20 |
63+ | boost::decimal::decimal64_t | 490 | 22 | 20 |
6164#endif
6265
6366namespace local
You can’t perform that action at this time.
0 commit comments