Skip to content

Commit

Permalink
Remove ATLAS Real BM and reduce iterations to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kamahori committed Sep 1, 2020
1 parent b3c6f4d commit 8e9705d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 35 deletions.
2 changes: 1 addition & 1 deletion root/io/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ if(rootbench-datafiles)
TFile_ATLAS_Benchmarks.cxx
LABEL short
LIBRARIES Core RIO
DOWNLOAD_DATAFILES atlasopendata_mc_117050.ttbar_lep.root atlasopendata_DataMuons.root)
DOWNLOAD_DATAFILES atlasopendata_mc_117050.ttbar_lep.root)
endif()
41 changes: 7 additions & 34 deletions root/io/io/TFile_ATLAS_Benchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -55,36 +55,9 @@ static void BM_ATLAS_Decompress(benchmark::State &state, int algo, std::string f
gSystem->Exec(("rm -f " + new_filename).c_str());
}


static void BM_ATLAS_Decompress_Real_ZLIB(benchmark::State &state) {
BM_ATLAS_Decompress(state, 1, "atlasopendata_DataMuons");
}
static void BM_ATLAS_Decompress_Real_LZMA(benchmark::State &state) {
BM_ATLAS_Decompress(state, 2, "atlasopendata_DataMuons");
}
static void BM_ATLAS_Decompress_Real_LZ4(benchmark::State &state) {
BM_ATLAS_Decompress(state, 4, "atlasopendata_DataMuons");
}
static void BM_ATLAS_Decompress_Real_ZSTD(benchmark::State &state) {
BM_ATLAS_Decompress(state, 5, "atlasopendata_DataMuons");
}

BENCHMARK(BM_ATLAS_Decompress_Real_ZLIB)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);

BENCHMARK(BM_ATLAS_Decompress_Real_LZMA)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);

BENCHMARK(BM_ATLAS_Decompress_Real_LZ4)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);

BENCHMARK(BM_ATLAS_Decompress_Real_ZSTD)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);

// Benchmarks for ATLAS files of experimental (real) data are deleted
// because it takes very long time.
// TODO: find smaller file

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

BENCHMARK(BM_ATLAS_Decompress_MC_ZLIB)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);
->Unit(benchmark::kMillisecond)->Iterations(2);

BENCHMARK(BM_ATLAS_Decompress_MC_LZMA)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);
->Unit(benchmark::kMillisecond)->Iterations(2);

BENCHMARK(BM_ATLAS_Decompress_MC_LZ4)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);
->Unit(benchmark::kMillisecond)->Iterations(2);

BENCHMARK(BM_ATLAS_Decompress_MC_ZSTD)
->Arg(1)->Arg(6)->Arg(9)
->Unit(benchmark::kMillisecond)->Iterations(3);
->Unit(benchmark::kMillisecond)->Iterations(2);


BENCHMARK_MAIN();

0 comments on commit 8e9705d

Please sign in to comment.