Skip to content

Commit 9236b84

Browse files
committed
Add 128-bit charconv benchmarking
1 parent 5851503 commit 9236b84

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/benchmarks.cpp

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,10 @@ int main()
484484
test_to_chars<double>("double");
485485
test_to_chars<decimal32>("decimal32");
486486
test_to_chars<decimal64>("decimal64");
487+
test_to_chars<decimal128>("decimal128");
487488
test_to_chars<decimal32_fast>("dec32_fast");
488489
test_to_chars<decimal64_fast>("dec64_fast");
490+
test_to_chars<decimal128_fast>("dec128_fast");
489491

490492
std::cerr << "\n===== <charconv> from_chars =====\n";
491493
test_from_chars<float>(false, "float");
@@ -496,10 +498,14 @@ int main()
496498
test_from_chars<decimal32>(true, "decimal32");
497499
test_from_chars<decimal64>(false, "decimal64");
498500
test_from_chars<decimal64>(true, "decimal64");
499-
test_from_chars<decimal32>(false, "dec32_fast");
500-
test_from_chars<decimal32>(true, "dec32_fast");
501-
test_from_chars<decimal64>(false, "dec64_fast");
502-
test_from_chars<decimal64>(true, "dec64_fast");
501+
test_from_chars<decimal128>(false, "decimal128");
502+
test_from_chars<decimal128>(true, "decimal128");
503+
test_from_chars<decimal32_fast>(false, "dec32_fast");
504+
test_from_chars<decimal32_fast>(true, "dec32_fast");
505+
test_from_chars<decimal64_fast>(false, "dec64_fast");
506+
test_from_chars<decimal64_fast>(true, "dec64_fast");
507+
test_from_chars<decimal128_fast>(false, "dec128_fast");
508+
test_from_chars<decimal128_fast>(true, "dec128_fast");
503509
#endif
504510
std::cerr << std::endl;
505511

0 commit comments

Comments
 (0)