@@ -28,7 +28,7 @@ static void BM_TFile_RDFSnapshot_ZLIB(benchmark::State &state) {
2828 auto options = SetupRDFOptions (ROOT::ECompressionAlgorithm::kZLIB , 1 );
2929 for (auto _ : state) {
3030 // And we write out the dataset on disk
31- tdf.Snapshot (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
31+ tdf.Snapshot < double > (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
3232 }
3333}
3434BENCHMARK (BM_TFile_RDFSnapshot_ZLIB)->Unit(benchmark::kMicrosecond );
@@ -39,7 +39,7 @@ static void BM_TFile_RDFSnapshot_LZ4(benchmark::State &state) {
3939 auto options = SetupRDFOptions (ROOT::ECompressionAlgorithm::kLZ4 , 4 );
4040 for (auto _ : state) {
4141 // And we write out the dataset on disk
42- tdf.Snapshot (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
42+ tdf.Snapshot < double > (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
4343 }
4444}
4545BENCHMARK (BM_TFile_RDFSnapshot_LZ4)->Unit(benchmark::kMicrosecond );
@@ -50,7 +50,7 @@ static void BM_TFile_RDFSnapshot_LZMA (benchmark::State &state) {
5050 auto options = SetupRDFOptions (ROOT::ECompressionAlgorithm::kLZMA , 8 );
5151 for (auto _ : state) {
5252 // And we write out the dataset on disk
53- tdf.Snapshot (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
53+ tdf.Snapshot < double > (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
5454 }
5555}
5656BENCHMARK (BM_TFile_RDFSnapshot_LZMA)->Unit(benchmark::kMicrosecond );
@@ -60,7 +60,7 @@ static void BM_TFile_RDFSnapshot_ZSTD (benchmark::State &state) {
6060 auto options = SetupRDFOptions (ROOT::ECompressionAlgorithm::kZSTD , 6 );
6161 for (auto _ : state) {
6262 // And we write out the dataset on disk
63- tdf.Snapshot (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
63+ tdf.Snapshot < double > (" randomNumbers" , " bench_data.root" , {" rnd" }, options);
6464 }
6565}
6666BENCHMARK (BM_TFile_RDFSnapshot_ZSTD)->Unit(benchmark::kMicrosecond );
0 commit comments