Skip to content

Commit

Permalink
Fix the benchmark automation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
pleroy committed May 22, 2024
1 parent 8ec542a commit 54aba2a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions benchmark_automation/benchmark_automation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
namespace principia {
namespace benchmark_automation {

class BenchmarkAutomation {
internal class BenchmarkAutomation {
private const string benchmark_executable = @".\Release\x64\benchmarks.exe";

private static void Main(string[] args) {
DirectoryInfo benchmark_directory = new DirectoryInfo(args[0]);
DirectoryInfo mathematica_directory = new DirectoryInfo(args[1]);
DirectoryInfo jenkins_directory = new DirectoryInfo(args[2]);
var benchmark_directory = new DirectoryInfo(args[0]);
var mathematica_directory = new DirectoryInfo(args[1]);
var jenkins_directory = new DirectoryInfo(args[2]);
DateTime date = DateTime.UtcNow;
string mathematica_date = date.ToString("{yyyy, M, d, H, m, s.fffffff},");
string mathematica_output_file =
Expand All @@ -37,10 +37,11 @@ private static void Main(string[] args) {
CreateNoWindow = true
}
};
var seen_benchmarks = new Dictionary<String, bool>();
var seen_benchmarks = new Dictionary<string, bool>();
list_benchmarks_process.Start();
while (!list_benchmarks_process.StandardOutput.EndOfStream) {
seen_benchmarks.Add(list_benchmarks_process.StandardOutput.ReadLine().
Replace(" / ","/").
Replace(", ", ",").
Replace(",\n", ",").
Replace(",\r\n", ","), false);
Expand Down Expand Up @@ -77,6 +78,7 @@ private static void Main(string[] args) {
// templated benchmark that has more than one parameter. Remove the
// space or line break as it would confuse word splitting.
string line = process.StandardOutput.ReadLine().
Replace(" / ","/").
Replace(", ",",").
Replace(",\n", ",").
Replace(",\r\n", ",");
Expand Down

0 comments on commit 54aba2a

Please sign in to comment.