Ji Liu created ARROW-6721: ----------------------------- Summary: [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: Bug Components: Java Reporter: Ji Liu Assignee: Ji Liu
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)