Skip to content

Commit 71a6542

Browse files
committed
PerfTest: test fixed (bug in BDN, fixed in 0.10.5)
1 parent 16bd647 commit 71a6542

File tree

48 files changed

+140
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+140
-124
lines changed

Experimental/tests-performance/CodeJam.Experimental-Tests.Performance.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<AssemblyOriginatorKeyFile>..\..\CodeJam.snk</AssemblyOriginatorKeyFile>
3838
</PropertyGroup>
3939
<ItemGroup>
40-
<Reference Include="BenchmarkDotNet.Core, Version=0.10.4.0, Culture=neutral, PublicKeyToken=aa0ca2f9092cefc4, processorArchitecture=MSIL">
41-
<HintPath>..\..\packages\BenchmarkDotNet.Core.0.10.4\lib\net46\BenchmarkDotNet.Core.dll</HintPath>
40+
<Reference Include="BenchmarkDotNet.Core, Version=0.10.5.0, Culture=neutral, PublicKeyToken=aa0ca2f9092cefc4, processorArchitecture=MSIL">
41+
<HintPath>..\..\packages\BenchmarkDotNet.Core.0.10.5\lib\net46\BenchmarkDotNet.Core.dll</HintPath>
4242
</Reference>
4343
<Reference Include="Microsoft.DotNet.InternalAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
4444
<HintPath>..\..\packages\Microsoft.DotNet.InternalAbstractions.1.0.0\lib\net451\Microsoft.DotNet.InternalAbstractions.dll</HintPath>

Experimental/tests-performance/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="BenchmarkDotNet.Core" version="0.10.4" targetFramework="net46" />
3+
<package id="BenchmarkDotNet.Core" version="0.10.5" targetFramework="net46" />
44
<package id="Microsoft.DotNet.InternalAbstractions" version="1.0.0" targetFramework="net46" />
55
<package id="Microsoft.DotNet.PlatformAbstractions" version="1.1.1" targetFramework="net46" />
66
<package id="NUnit" version="3.6.1" targetFramework="net461" />

Main/tests-performance/CodeJam.Main-Tests.Performance.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<StartupObject />
4444
</PropertyGroup>
4545
<ItemGroup>
46-
<Reference Include="BenchmarkDotNet.Core, Version=0.10.4.0, Culture=neutral, PublicKeyToken=aa0ca2f9092cefc4, processorArchitecture=MSIL">
47-
<HintPath>..\..\packages\BenchmarkDotNet.Core.0.10.4\lib\net46\BenchmarkDotNet.Core.dll</HintPath>
46+
<Reference Include="BenchmarkDotNet.Core, Version=0.10.5.0, Culture=neutral, PublicKeyToken=aa0ca2f9092cefc4, processorArchitecture=MSIL">
47+
<HintPath>..\..\packages\BenchmarkDotNet.Core.0.10.5\lib\net46\BenchmarkDotNet.Core.dll</HintPath>
4848
</Reference>
4949
<Reference Include="Microsoft.DotNet.InternalAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
5050
<HintPath>..\..\packages\Microsoft.DotNet.InternalAbstractions.1.0.0\lib\net451\Microsoft.DotNet.InternalAbstractions.dll</HintPath>

Main/tests-performance/DesignDecisions/EmitOrExpressions/DecisionMappingPerfTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void TestDelegates()
163163
Assert.True(_lessThanTbExpression(a1, a2));
164164
}
165165

166-
private const int Count = CompetitionHelpers.SmallLoopCount;
166+
private const int Count = CompetitionRunHelpers.SmallLoopCount;
167167
private HInt32[] _a, _b, _c;
168168

169169
[Setup]

Main/tests-performance/DesignDecisions/EmitOrExpressions/DecisionOperatorsPerfTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void TestDelegates()
145145
Assert.True(_lessThanTbExpression(1, 2));
146146
}
147147

148-
private const int Count = CompetitionHelpers.SmallLoopCount;
148+
private const int Count = CompetitionRunHelpers.SmallLoopCount;
149149
private int[] _a, _b, _c;
150150

151151
[Setup]

Main/tests-performance/DesignDecisions/JitOptimized/DecisionFeatureSwitchPerfTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class AnotherClass
4141
private static int DefaultAction(int a) => a + 1;
4242
#endregion
4343

44-
private static readonly int Count = CompetitionHelpers.SmallLoopCount;
44+
private static readonly int Count = CompetitionRunHelpers.SmallLoopCount;
4545

4646
[Test]
4747
public void RunDecisionFeatureSwitchPerfTest() => Competition.Run(this);

Main/tests-performance/Enums/EnumHelperPerfTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public enum F : byte
3939
private const string Fx = "X";
4040
#endregion
4141

42-
private static readonly int Count = BurstModeLoopCount / 16;
42+
private static readonly int Count = CompetitionRunHelpers.BurstModeLoopCount / 16;
4343

4444
[Test]
4545
public void RunIsDefinedCase() => Competition.Run<IsDefinedCase>();

Main/tests-performance/Ranges/RangeBoundaryBaseCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private static RangeBoundaryTo<T> CreateBoundaryTo(T value, int i)
4646
}
4747

4848
/// <summary> Count of items </summary>
49-
protected int Count { get; set; } = CompetitionHelpers.BurstModeLoopCount / 16;
49+
protected int Count { get; set; } = CompetitionRunHelpers.BurstModeLoopCount / 16;
5050

5151
/// <summary> Repeat value A each </summary>
5252
protected int ValueARepeats { get; set; } = 5;

Main/tests-performance/Ranges/RangeBoundaryFactoryPerfTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace CodeJam.Ranges
1818
[CompetitionBurstMode]
1919
public class RangeBoundaryFactoryPerfTests
2020
{
21-
private static readonly int Count = SmallLoopCount;
21+
private static readonly int Count = CompetitionRunHelpers.SmallLoopCount;
2222

2323
[Test]
2424
public void RunRangeBoundaryFactoryPerfTests() => Competition.Run(this);

Main/tests-performance/RangesAlternatives/RangeAlternativesPerfTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void RunRangeAlternativesIntCase() =>
2828
[PublicAPI]
2929
public class RangeAlternativesIntCase
3030
{
31-
private static readonly int Count = BurstModeLoopCount / 16;
31+
private static readonly int Count = CompetitionRunHelpers.BurstModeLoopCount / 16;
3232

3333
private readonly KeyValuePair<int, int>[] _data;
3434
private readonly RangeStub<int>[] _rangeData;
@@ -139,7 +139,7 @@ public void RunRangeAlternativesNullableIntCase() =>
139139
[PublicAPI]
140140
public class RangeAlternativesNullableIntCase
141141
{
142-
private static readonly int Count = SmallLoopCount;
142+
private static readonly int Count = CompetitionRunHelpers.SmallLoopCount;
143143
private readonly KeyValuePair<int?, int?>[] _data;
144144
private readonly RangeStub<int?>[] _rangeData;
145145
private readonly RangeStub<int?, string>[] _rangeKeyData;

0 commit comments

Comments
 (0)