Skip to content

Commit 641c626

Browse files
committed
Reduce jitting
1 parent 206227e commit 641c626

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

root/io/io/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RB_ADD_GBENCHMARK(IOBenchmarks
66
RB_ADD_GBENCHMARK(TFile_RDFSnapshot
77
TFile_RDFSnapshot.cxx
88
LABEL short
9-
LIBRARIES Core RIO ROOTDataFrame MathCore)
9+
LIBRARIES Core RIO ROOTDataFrame Tree TreePlayer MathCore)
1010

1111
if(rootbench-datafiles)
1212
RB_ADD_GBENCHMARK(CompressionBenchmarks_MainEvent

root/io/io/TFile_RDFSnapshot.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
3434
BENCHMARK(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
}
4545
BENCHMARK(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
}
5656
BENCHMARK(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
}
6666
BENCHMARK(BM_TFile_RDFSnapshot_ZSTD)->Unit(benchmark::kMicrosecond);

0 commit comments

Comments
 (0)