[ 
https://issues.apache.org/jira/browse/ARROW-14341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Li resolved ARROW-14341.
------------------------------
    Fix Version/s: 6.0.0
       Resolution: Fixed

Issue resolved by pull request 11458
[https://github.com/apache/arrow/pull/11458]

> [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
>             Fix For: 6.0.0
>
>          Time Spent: 1h 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)

Reply via email to