Skip to content

Commit 8932c63

Browse files
author
atheate
committed
textual notation performance on test
1 parent 0b56006 commit 8932c63

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎SysML2.NET.Serializer.TextualNotation.Tests/SysML2.NET.Serializer.TextualNotation.Tests.csproj‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
<IsPackable>false</IsPackable>
1616
<PreserveCompilationContext>true</PreserveCompilationContext>
1717
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
18+
<!-- The validation corpus runs its cases in parallel and each one allocates a large POCO graph while
19+
deserializing the library XMI it references. Workstation GC gives those threads a single heap to
20+
contend on, which is what caps the speed-up; Server GC gives each core its own heap. Test-host
21+
only - it does not affect the shipped libraries. -->
22+
<ServerGarbageCollection>true</ServerGarbageCollection>
23+
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
1824
</PropertyGroup>
1925

2026
<ItemGroup>

‎SysML2.NET.Serializer.TextualNotation.Tests/Writers/TextualNotationValidationTestFixture.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ namespace SysML2.NET.Serializer.TextualNotation.Tests.Writers
3636
using SysML2.NET.Serializer.Xmi;
3737

3838
[TestFixture]
39+
[Parallelizable(ParallelScope.Children)]
3940
public class TextualNotationValidationTestFixture
4041
{
4142
/// <summary>

0 commit comments

Comments
 (0)