Skip to content

Commit 203e744

Browse files
committed
Update cppalliance/decimal benchmark
1 parent 7b6303e commit 203e744

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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)
@@ -24,7 +24,7 @@
2424
#include <app/benchmark/app_benchmark_detail.h>
2525

2626
using 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;
3030
using 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

6366
namespace local

0 commit comments

Comments
 (0)