@@ -98,26 +98,33 @@ static void BM_WriteInt64Column(::benchmark::State& state) {
9898BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REQUIRED )->Arg (1 << 20 );
9999BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::OPTIONAL )->Arg (1 << 20 );
100100BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REPEATED )->Arg (1 << 20 );
101+
102+ #ifdef ARROW_WITH_SNAPPY
101103BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REQUIRED , Compression::SNAPPY )
102104 ->Arg (1 << 20 );
103105BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::OPTIONAL , Compression::SNAPPY )
104106 ->Arg (1 << 20 );
105107BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REPEATED , Compression::SNAPPY )
106108 ->Arg (1 << 20 );
109+ #endif
107110
111+ #ifdef ARROW_WITH_LZ4
108112BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REQUIRED , Compression::LZ4 )
109113 ->Arg (1 << 20 );
110114BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::OPTIONAL , Compression::LZ4 )
111115 ->Arg (1 << 20 );
112116BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REPEATED , Compression::LZ4 )
113117 ->Arg (1 << 20 );
118+ #endif
114119
120+ #ifdef ARROW_WITH_ZSTD
115121BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REQUIRED , Compression::ZSTD )
116122 ->Arg (1 << 20 );
117123BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::OPTIONAL , Compression::ZSTD )
118124 ->Arg (1 << 20 );
119125BENCHMARK_TEMPLATE (BM_WriteInt64Column, Repetition::REPEATED , Compression::ZSTD )
120126 ->Arg (1 << 20 );
127+ #endif
121128
122129std::shared_ptr<Int64Reader> BuildReader (std::shared_ptr<Buffer>& buffer,
123130 int64_t num_values, Compression::type codec,
@@ -183,26 +190,32 @@ BENCHMARK_TEMPLATE(BM_ReadInt64Column, Repetition::OPTIONAL)->Apply(ReadColumnSe
183190
184191BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REPEATED )->Apply (ReadColumnSetArgs);
185192
193+ #ifdef ARROW_WITH_SNAPPY
186194BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REQUIRED , Compression::SNAPPY )
187195 ->Apply (ReadColumnSetArgs);
188196BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::OPTIONAL , Compression::SNAPPY )
189197 ->Apply (ReadColumnSetArgs);
190198BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REPEATED , Compression::SNAPPY )
191199 ->Apply (ReadColumnSetArgs);
200+ #endif
192201
202+ #ifdef ARROW_WITH_LZ4
193203BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REQUIRED , Compression::LZ4 )
194204 ->Apply (ReadColumnSetArgs);
195205BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::OPTIONAL , Compression::LZ4 )
196206 ->Apply (ReadColumnSetArgs);
197207BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REPEATED , Compression::LZ4 )
198208 ->Apply (ReadColumnSetArgs);
209+ #endif
199210
211+ #ifdef ARROW_WITH_ZSTD
200212BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REQUIRED , Compression::ZSTD )
201213 ->Apply (ReadColumnSetArgs);
202214BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::OPTIONAL , Compression::ZSTD )
203215 ->Apply (ReadColumnSetArgs);
204216BENCHMARK_TEMPLATE (BM_ReadInt64Column, Repetition::REPEATED , Compression::ZSTD )
205217 ->Apply (ReadColumnSetArgs);
218+ #endif
206219
207220static void BM_RleEncoding (::benchmark::State& state) {
208221 std::vector<int16_t > levels (state.range (0 ), 0 );
0 commit comments