You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Yibo Cai (Jira)" <ji...@apache.org> on 2021/10/15 10:19:00 UTC

[jira] [Created] (ARROW-14341) [C++] Refine decimal benchmark

Yibo Cai created ARROW-14341:
--------------------------------

             Summary: [C++] Refine decimal benchmark
                 Key: ARROW-14341
                 URL: https://issues.apache.org/jira/browse/ARROW-14341
             Project: Apache Arrow
          Issue Type: Improvement
          Components: C++
            Reporter: Yibo Cai
            Assignee: Yibo Cai


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)