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

Ji Liu updated ARROW-6721:
--------------------------
        Parent: ARROW-5845
    Issue Type: Sub-task  (was: Bug)

> [JAVA] Avro adapter benchmark only runs once in JMH
> ---------------------------------------------------
>
>                 Key: ARROW-6721
>                 URL: https://issues.apache.org/jira/browse/ARROW-6721
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Java
>            Reporter: Ji Liu
>            Assignee: Ji Liu
>            Priority: Minor
>
> The current {{AvroAdapterBenchmark}} actually only run once during JMH 
> evaluation, since the decoder was consumed for the first time and the 
> follow-up invokes will directly return.
> To solve this, we use {{BinaryDecoder}} explicitly in benchmark and reset its 
> inner stream first when the test method is invoked.



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

Reply via email to