Skip to content

Commit

Permalink
chore: Bump packages, shorten perf test run (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Jul 30, 2024
1 parent 62a0e86 commit e1fbf87
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/GemFile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ GEM
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.1.1)
racc (1.8.0)
racc (1.8.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ObserveStream/ObserveStream.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Alpaca.Markets" Version="7.0.4" />
<PackageReference Include="Alpaca.Markets" Version="7.1.0" />
<PackageReference Include="Skender.Stock.Indicators" Version="3.0.0-preview1014-0025" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/UseQuoteApi/UseQuoteApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Alpaca.Markets" Version="7.0.4" />
<PackageReference Include="Alpaca.Markets" Version="7.1.0" />
<PackageReference Include="Skender.Stock.Indicators" Version="2.5.0" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions tests/indicators/Tests.Indicators.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="MSTest.TestAdapter" Version="3.5.0" />
<PackageReference Include="MSTest.TestFramework" Version="3.5.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
4 changes: 2 additions & 2 deletions tests/other/Tests.Other.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="MSTest.TestAdapter" Version="3.5.0" />
<PackageReference Include="MSTest.TestFramework" Version="3.5.0" />
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions tests/performance/Perf.Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Tests.Performance;

// HELPERS, both public and private

[ShortRunJob]
public class HelperPerformance
{
private static IEnumerable<Quote> h;
Expand Down
21 changes: 4 additions & 17 deletions tests/performance/Perf.Indicators.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Tests.Performance;

[ShortRunJob]
public class IndicatorPerformance
{
private static IEnumerable<Quote> h;
Expand Down Expand Up @@ -36,9 +37,6 @@ public static void SetupCompare()
[Benchmark]
public object GetAdl() => h.GetAdl();

[Benchmark]
public object GetAdlWithSma() => h.GetAdl(14);

[Benchmark]
public object GetAdx() => h.GetAdx();

Expand Down Expand Up @@ -115,24 +113,13 @@ public static void SetupCompare()
public object GetDpo() => h.GetDpo(14);

[Benchmark]
public object GetElderRay() => h.GetElderRay();
public object GetDynamic() => h.GetDynamic(20);

[Benchmark]
public object GetEma() => h.GetEma(14);
public object GetElderRay() => h.GetElderRay();

[Benchmark]
public object GetEmaStream()
{
EmaBase emaBase = hList.Take(15).InitEma(14);

for (int i = 15; i < hList.Count; i++)
{
Quote q = hList[i];
_ = emaBase.Add(q);
}

return emaBase.Results;
}
public object GetEma() => h.GetEma(14);

[Benchmark]
public object GetEpma() => h.GetEpma(14);
Expand Down
1 change: 1 addition & 0 deletions tests/performance/Perf.Internals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Tests.Performance;

// INTERNAL FUNCTIONS

[ShortRunJob]
public class InternalsPerformance
{
[Params(20, 50, 250, 1000)]
Expand Down

0 comments on commit e1fbf87

Please sign in to comment.