Compare commits

...

5 Commits

Author SHA1 Message Date
Paul
8e2063268f environment funnies 2022-03-30 20:23:38 +02:00
Paul
d2f5b05503 wait 2022-03-30 17:47:25 +02:00
Paul
bf8c972eb2 aaaaaaa 2022-03-30 17:42:58 +02:00
Paul
1af1e3f768 does it work? 2022-03-30 17:39:35 +02:00
Paul
1dab3cc567 yes 2022-03-30 17:35:16 +02:00
2 changed files with 7 additions and 3 deletions

View File

@@ -30,4 +30,4 @@ jobs:
- name: Install dependencies
run: dotnet restore
- name: Run benchmark
run: cd Robust.Benchmarks && sudo dotnet run --filter '*' --configuration Release
run: cd Robust.Benchmarks && sudo -E dotnet run --filter 'Robust.Benchmarks.NumericsHelpers.AddBenchmark*' --configuration Release

View File

@@ -18,8 +18,12 @@ namespace Robust.Benchmarks
Console.WriteLine("THE DEBUG BUILD IS ONLY GOOD FOR FIXING A CRASHING BENCHMARK\n");
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, new DebugInProcessConfig());
#else
var config = Environment.GetEnvironmentVariable("ROBUST_BENCHMARKS_ENABLE_SQL") != null ? DefaultSQLConfig.Instance : null;
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
var val = Environment.GetEnvironmentVariable("ROBUST_BENCHMARKS_ENABLE_SQL");
Console.WriteLine($"Value of env var: '{val}'");
var sqlBenchmarks = val != null;
if(sqlBenchmarks)
Console.WriteLine("Found ROBUST_BENCHMARKS_ENABLE_SQL, using SQLExporter.");
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, sqlBenchmarks ? DefaultSQLConfig.Instance : null);
#endif
}
}