You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/19 06:17:00 UTC
[jira] [Updated] (ARROW-14341) [C++] Refine decimal benchmark
[ https://issues.apache.org/jira/browse/ARROW-14341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-14341:
-----------------------------------
Labels: pull-request-available (was: )
> [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
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)