Skip to content

Commit ec6abdb

Browse files
committed
Disable ATLAS Real BM temporarily and reduce iterations to 2
1 parent b3c6f4d commit ec6abdb

File tree

2 files changed

+37
-34
lines changed

2 files changed

+37
-34
lines changed

root/io/io/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ if(rootbench-datafiles)
3131
TFile_ATLAS_Benchmarks.cxx
3232
LABEL short
3333
LIBRARIES Core RIO
34-
DOWNLOAD_DATAFILES atlasopendata_mc_117050.ttbar_lep.root atlasopendata_DataMuons.root)
34+
DOWNLOAD_DATAFILES atlasopendata_mc_117050.ttbar_lep.root) # atlasopendata_DataMuons.root
3535
endif()

root/io/io/TFile_ATLAS_Benchmarks.cxx

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,38 @@ static void BM_ATLAS_Decompress(benchmark::State &state, int algo, std::string f
5555
gSystem->Exec(("rm -f " + new_filename).c_str());
5656
}
5757

58-
59-
static void BM_ATLAS_Decompress_Real_ZLIB(benchmark::State &state) {
60-
BM_ATLAS_Decompress(state, 1, "atlasopendata_DataMuons");
61-
}
62-
static void BM_ATLAS_Decompress_Real_LZMA(benchmark::State &state) {
63-
BM_ATLAS_Decompress(state, 2, "atlasopendata_DataMuons");
64-
}
65-
static void BM_ATLAS_Decompress_Real_LZ4(benchmark::State &state) {
66-
BM_ATLAS_Decompress(state, 4, "atlasopendata_DataMuons");
67-
}
68-
static void BM_ATLAS_Decompress_Real_ZSTD(benchmark::State &state) {
69-
BM_ATLAS_Decompress(state, 5, "atlasopendata_DataMuons");
70-
}
71-
72-
BENCHMARK(BM_ATLAS_Decompress_Real_ZLIB)
73-
->Arg(1)->Arg(6)->Arg(9)
74-
->Unit(benchmark::kMillisecond)->Iterations(3);
75-
76-
BENCHMARK(BM_ATLAS_Decompress_Real_LZMA)
77-
->Arg(1)->Arg(6)->Arg(9)
78-
->Unit(benchmark::kMillisecond)->Iterations(3);
79-
80-
BENCHMARK(BM_ATLAS_Decompress_Real_LZ4)
81-
->Arg(1)->Arg(6)->Arg(9)
82-
->Unit(benchmark::kMillisecond)->Iterations(3);
83-
84-
BENCHMARK(BM_ATLAS_Decompress_Real_ZSTD)
85-
->Arg(1)->Arg(6)->Arg(9)
86-
->Unit(benchmark::kMillisecond)->Iterations(3);
58+
// Benchmarks for ATLAS files of experimental (real) data are temporarily disabled
59+
// because it takes very long time.
60+
// TODO: find smaller file
61+
62+
// static void BM_ATLAS_Decompress_Real_ZLIB(benchmark::State &state) {
63+
// BM_ATLAS_Decompress(state, 1, "atlasopendata_DataMuons");
64+
// }
65+
// static void BM_ATLAS_Decompress_Real_LZMA(benchmark::State &state) {
66+
// BM_ATLAS_Decompress(state, 2, "atlasopendata_DataMuons");
67+
// }
68+
// static void BM_ATLAS_Decompress_Real_LZ4(benchmark::State &state) {
69+
// BM_ATLAS_Decompress(state, 4, "atlasopendata_DataMuons");
70+
// }
71+
// static void BM_ATLAS_Decompress_Real_ZSTD(benchmark::State &state) {
72+
// BM_ATLAS_Decompress(state, 5, "atlasopendata_DataMuons");
73+
// }
74+
75+
// BENCHMARK(BM_ATLAS_Decompress_Real_ZLIB)
76+
// ->Arg(1)->Arg(6)->Arg(9)
77+
// ->Unit(benchmark::kMillisecond)->Iterations(3);
78+
79+
// BENCHMARK(BM_ATLAS_Decompress_Real_LZMA)
80+
// ->Arg(1)->Arg(6)->Arg(9)
81+
// ->Unit(benchmark::kMillisecond)->Iterations(3);
82+
83+
// BENCHMARK(BM_ATLAS_Decompress_Real_LZ4)
84+
// ->Arg(1)->Arg(6)->Arg(9)
85+
// ->Unit(benchmark::kMillisecond)->Iterations(3);
86+
87+
// BENCHMARK(BM_ATLAS_Decompress_Real_ZSTD)
88+
// ->Arg(1)->Arg(6)->Arg(9)
89+
// ->Unit(benchmark::kMillisecond)->Iterations(3);
8790

8891

8992
static void BM_ATLAS_Decompress_MC_ZLIB(benchmark::State &state) {
@@ -101,19 +104,19 @@ static void BM_ATLAS_Decompress_MC_ZSTD(benchmark::State &state) {
101104

102105
BENCHMARK(BM_ATLAS_Decompress_MC_ZLIB)
103106
->Arg(1)->Arg(6)->Arg(9)
104-
->Unit(benchmark::kMillisecond)->Iterations(3);
107+
->Unit(benchmark::kMillisecond)->Iterations(2);
105108

106109
BENCHMARK(BM_ATLAS_Decompress_MC_LZMA)
107110
->Arg(1)->Arg(6)->Arg(9)
108-
->Unit(benchmark::kMillisecond)->Iterations(3);
111+
->Unit(benchmark::kMillisecond)->Iterations(2);
109112

110113
BENCHMARK(BM_ATLAS_Decompress_MC_LZ4)
111114
->Arg(1)->Arg(6)->Arg(9)
112-
->Unit(benchmark::kMillisecond)->Iterations(3);
115+
->Unit(benchmark::kMillisecond)->Iterations(2);
113116

114117
BENCHMARK(BM_ATLAS_Decompress_MC_ZSTD)
115118
->Arg(1)->Arg(6)->Arg(9)
116-
->Unit(benchmark::kMillisecond)->Iterations(3);
119+
->Unit(benchmark::kMillisecond)->Iterations(2);
117120

118121

119122
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)