Skip to content

Commit

Permalink
chore: Fix verbose comments about benchmark execution
Browse files Browse the repository at this point in the history
There are more categories of benchmarks other than IMAP related ones
now.
  • Loading branch information
LBeernaertProton committed Aug 10, 2022
1 parent eae69c4 commit 0512602
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmarks/gluon_bench/benchmark/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func RunMain() {

for _, v := range benchmarks {
if *flags.Verbose {
fmt.Printf("Begin IMAPBenchmark: %v\n", v.Name())
fmt.Printf("Begin Benchmark: %v\n", v.Name())
}

numRuns := *flags.BenchmarkRuns
Expand All @@ -80,7 +80,7 @@ func RunMain() {

for r := uint(0); r < numRuns; r++ {
if *flags.Verbose {
fmt.Printf("IMAPBenchmark Run: %v\n", r)
fmt.Printf("Benchmark Run: %v\n", r)
}

benchStat := measureBenchmark(benchDirConfig, r, v)
Expand All @@ -90,7 +90,7 @@ func RunMain() {
benchmarkReports = append(benchmarkReports, reporter.NewBenchmarkReport(v.Name(), benchmarkStats...))

if *flags.Verbose {
fmt.Printf("End IMAPBenchmark: %v\n", v.Name())
fmt.Printf("End Benchmark: %v\n", v.Name())
}
}

Expand Down Expand Up @@ -119,7 +119,7 @@ func measureBenchmark(dirConfig BenchDirConfig, iteration uint, bench Benchmark)
benchPath = filepath.Join(benchPath, fmt.Sprintf("%v-%d", bench.Name(), iteration))

if *flags.Verbose {
fmt.Printf("IMAPBenchmark Data Path: %v\n", benchPath)
fmt.Printf("Benchmark Data Path: %v\n", benchPath)
}

if err := os.MkdirAll(benchPath, 0o777); err != nil {
Expand Down

0 comments on commit 0512602

Please sign in to comment.