ShaiviAgarwal2 commented on issue #39227: URL: https://github.com/apache/arrow/issues/39227#issuecomment-1890411608
> This looks ok to me, you can also run `encoding_benchmark` and boolean related benchmark to testing your optimization Can we use the Google Benchmark library for the same? Below I have used the Google Benchmark library for testing the optimization. Here, we can replace BooleanDecodingFunction() with the actual boolean decoding function we are trying to test. ``` #include <benchmark/benchmark.h> static void BM_BooleanDecoding(benchmark::State& state) { // Set up the data and context for the benchmark while (state.KeepRunning()) { // Call the boolean decoding function wre're benchmarking BooleanDecodingFunction(); } } // Register the benchmark BENCHMARK(BM_BooleanDecoding); // Run the benchmark BENCHMARK_MAIN(); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org