Skip to content

Commit

Permalink
Tweaked logic for checking existing attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi committed Aug 5, 2024
1 parent 485cfd7 commit c366542
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions runBenchmarks.sc
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ val drivers = Seq("overflowdb", "tinkergraph
val outputPath = Path.of(driverResultsDir.toString, s"output-Xmx${memGb}G")
val (writeOutputFile, readOutputFile) =
(Path.of(s"$outputPath-write.txt").toFile, Path.of(s"$outputPath-read.txt").toFile)
val resultsExist =
Path.of(s"$resultsPath-read.csv").toFile.exists() && Path.of(s"$outputPath-read.txt").toFile.exists()
val existingAttempt = Path.of(s"$resultsPath-sbt.txt").toFile.exists()
val cmd =
s"Jmh/runMain com.github.plume.oss.Benchmark $driver ${projectDir.toAbsolutePath} -o ${outputPath.toAbsolutePath} -r ${resultsPath.toAbsolutePath} -m $memGb"
JmhProcessInfo(cmd, resultsExist, writeOutputFile, readOutputFile)
JmhProcessInfo(cmd, existingAttempt, writeOutputFile, readOutputFile)
}

println("[info] Available projects:")
Expand All @@ -57,7 +56,7 @@ val drivers = Seq("overflowdb", "tinkergraph
benchmarkArgs(driver, project.getFileName.toString, memConfig)
if (resultsExist) {
println(
s"[info] Results for '$driver' on project '$project' with `-Xmx${memConfig}G` already exist. Skipping..."
s"[info] An attempt for '$driver' on project '$project' with `-Xmx${memConfig}G` already exist. Skipping..."
)
} else {
println(s"[info] Benchmarking '$driver' on project '$project' with `-Xmx${memConfig}G`")
Expand Down

0 comments on commit c366542

Please sign in to comment.