Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a31dbef

Browse files
committed
Merge pull request #2625 from swgillespie/volatile_gc_perf_tests
Remove volatile GC perf tests from the main perf run
2 parents 041281c + 0293ba8 commit a31dbef

File tree

2 files changed

+2
-73
lines changed

2 files changed

+2
-73
lines changed

tests/src/GC/Performance/Framework/PerfTests.cs

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -264,77 +264,5 @@ public void ConcurrentSpin_Workstation()
264264
}
265265
}
266266
}
267-
268-
[Benchmark]
269-
public void Allocation_Server()
270-
{
271-
var exe = ProcessFactory.ProbeForFile("Allocation.exe");
272-
var env = new Dictionary<string, string>()
273-
{
274-
[ServerGC] = "1",
275-
[ConcurrentGC] = "1"
276-
};
277-
foreach (var iteration in Benchmark.Iterations)
278-
{
279-
using (iteration.StartMeasurement())
280-
{
281-
ProcessFactory.LaunchProcess(exe, "5000000000 95000", env);
282-
}
283-
}
284-
}
285-
286-
[Benchmark]
287-
public void Allocation_Server_NonConcurrent()
288-
{
289-
var exe = ProcessFactory.ProbeForFile("Allocation.exe");
290-
var env = new Dictionary<string, string>()
291-
{
292-
[ServerGC] = "1",
293-
[ConcurrentGC] = "0"
294-
};
295-
foreach (var iteration in Benchmark.Iterations)
296-
{
297-
using (iteration.StartMeasurement())
298-
{
299-
ProcessFactory.LaunchProcess(exe, "5000000000 95000", env);
300-
}
301-
}
302-
}
303-
304-
305-
[Benchmark]
306-
public void EE_GC_Server()
307-
{
308-
var exe = ProcessFactory.ProbeForFile("EEGC.exe");
309-
var env = new Dictionary<string, string>()
310-
{
311-
[ServerGC] = "1"
312-
};
313-
foreach (var iteration in Benchmark.Iterations)
314-
{
315-
using (iteration.StartMeasurement())
316-
{
317-
ProcessFactory.LaunchProcess(exe, environmentVariables: env);
318-
}
319-
}
320-
}
321-
322-
[Benchmark]
323-
public void EE_GC_Workstation()
324-
{
325-
var exe = ProcessFactory.ProbeForFile("EEGC.exe");
326-
var env = new Dictionary<string, string>()
327-
{
328-
[ServerGC] = "0"
329-
};
330-
foreach (var iteration in Benchmark.Iterations)
331-
{
332-
using (iteration.StartMeasurement())
333-
{
334-
ProcessFactory.LaunchProcess(exe, environmentVariables: env);
335-
}
336-
}
337-
}
338-
339267
}
340268
}

tests/src/GC/Performance/Framework/ProcessFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ public static string ProbeForFile(string fileName)
213213
var probePath = Environment.GetEnvironmentVariable(ProbePathEnvironmentVariable);
214214
if (probePath == null)
215215
{
216-
throw new InvalidOperationException($"Environment variable {ProbePathEnvironmentVariable} must be set!");
216+
// fall back to the current working directory if the probe path is not set
217+
probePath = Directory.GetCurrentDirectory();
217218
}
218219

219220
var path = ProbeForFileImpl(fileName, probePath);

0 commit comments

Comments
 (0)