Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-6721: [JAVA] Avro adapter benchmark only runs once in JMH
Related to [ARROW-6721](https://issues.apache.org/jira/browse/ARROW-6721). 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. Closes #5524 from tianchen92/ARROW-6721 and squashes the following commits: c8d0420 <tianchen> ARROW-6721: Avro adapter benchmark only runs once in JMH Authored-by: tianchen <niki.lj@alibaba-inc.com> Signed-off-by: Micah Kornfield <emkornfield@gmail.com>
- Loading branch information