Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14341

[C++] Refine decimal benchmark

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0
    • C++

    Description

      Decimal benchmark mixes +-*/ operations in one test loop[1]. Divide always dominates the result. It's ~6x slower than multiplication, let alone addition.
      It's better to test division, multiplication, addition/subtraction separately to get more reasonable results.

      [1] https://github.com/apache/arrow/blob/master/cpp/src/arrow/util/decimal_benchmark.cc#L141-L145

      Attachments

        Issue Links

          Activity

            People

              yibocai Yibo Cai
              yibocai Yibo Cai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h