Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[io] fix type of RSnapshotOptions::fCompressionAlgorithm #289

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading