Skip to content

Commit

Permalink
[io] fix type of RSnapshotOptions::fCompressionAlgorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Jun 27, 2024
1 parent 60dafbb commit 9a52714
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions root/io/io/TFile_RDFSnapshot.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ auto SetupRDF() {
return tdf_1;
}

auto SetupRDFOptions(ROOT::ECompressionAlgorithm alg, int level) {
auto SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::EValues alg, int level) {
ROOT::RDF::RSnapshotOptions options;
options.fCompressionAlgorithm = alg;
options.fCompressionLevel = level;
Expand All @@ -25,7 +25,7 @@ auto SetupRDFOptions(ROOT::ECompressionAlgorithm alg, int level) {

static void BM_TFile_RDFSnapshot_ZLIB(benchmark::State &state) {
auto tdf = SetupRDF();
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kZLIB, 1);
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kZLIB, 1);
for (auto _ : state) {
//And we write out the dataset on disk
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
Expand All @@ -36,7 +36,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_ZLIB)->Unit(benchmark::kMicrosecond);

static void BM_TFile_RDFSnapshot_LZ4(benchmark::State &state) {
auto tdf = SetupRDF();
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kLZ4, 4);
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kLZ4, 4);
for (auto _ : state) {
//And we write out the dataset on disk
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
Expand All @@ -47,7 +47,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_LZ4)->Unit(benchmark::kMicrosecond);

static void BM_TFile_RDFSnapshot_LZMA (benchmark::State &state) {
auto tdf = SetupRDF();
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kLZMA, 8);
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kLZMA, 8);
for (auto _ : state) {
//And we write out the dataset on disk
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
Expand All @@ -57,7 +57,7 @@ BENCHMARK(BM_TFile_RDFSnapshot_LZMA)->Unit(benchmark::kMicrosecond);

static void BM_TFile_RDFSnapshot_ZSTD (benchmark::State &state) {
auto tdf = SetupRDF();
auto options = SetupRDFOptions(ROOT::ECompressionAlgorithm::kZSTD, 6);
auto options = SetupRDFOptions(ROOT::RCompressionSetting::EAlgorithm::kZSTD, 6);
for (auto _ : state) {
//And we write out the dataset on disk
tdf.Snapshot<double>("randomNumbers", "bench_data.root", {"rnd"}, options);
Expand Down

0 comments on commit 9a52714

Please sign in to comment.