Skip to content

Commit 8e9705d

Browse files
committed
Remove ATLAS Real BM and reduce iterations to 2
1 parent b3c6f4d commit 8e9705d

File tree

2 files changed

+8
-35
lines changed

2 files changed

+8
-35
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)
3535
endif()

root/io/io/TFile_ATLAS_Benchmarks.cxx

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,9 @@ 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);
87-
58+
// Benchmarks for ATLAS files of experimental (real) data are deleted
59+
// because it takes very long time.
60+
// TODO: find smaller file
8861

8962
static void BM_ATLAS_Decompress_MC_ZLIB(benchmark::State &state) {
9063
BM_ATLAS_Decompress(state, 1, "atlasopendata_mc_117050.ttbar_lep");
@@ -101,19 +74,19 @@ static void BM_ATLAS_Decompress_MC_ZSTD(benchmark::State &state) {
10174

10275
BENCHMARK(BM_ATLAS_Decompress_MC_ZLIB)
10376
->Arg(1)->Arg(6)->Arg(9)
104-
->Unit(benchmark::kMillisecond)->Iterations(3);
77+
->Unit(benchmark::kMillisecond)->Iterations(2);
10578

10679
BENCHMARK(BM_ATLAS_Decompress_MC_LZMA)
10780
->Arg(1)->Arg(6)->Arg(9)
108-
->Unit(benchmark::kMillisecond)->Iterations(3);
81+
->Unit(benchmark::kMillisecond)->Iterations(2);
10982

11083
BENCHMARK(BM_ATLAS_Decompress_MC_LZ4)
11184
->Arg(1)->Arg(6)->Arg(9)
112-
->Unit(benchmark::kMillisecond)->Iterations(3);
85+
->Unit(benchmark::kMillisecond)->Iterations(2);
11386

11487
BENCHMARK(BM_ATLAS_Decompress_MC_ZSTD)
11588
->Arg(1)->Arg(6)->Arg(9)
116-
->Unit(benchmark::kMillisecond)->Iterations(3);
89+
->Unit(benchmark::kMillisecond)->Iterations(2);
11790

11891

11992
BENCHMARK_MAIN();

0 commit comments

Comments
 (0)