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)