-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from lightstep/prep012release
prepare for 0.12 release; add perf test
- Loading branch information
Showing
12 changed files
with
273 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ public IEnumerable<SpanData> GetSpans() | |
|
||
public int GetSpanCount() | ||
{ | ||
|
||
return Spans.Count; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace LightStep.Tests | ||
{ | ||
class TracerLogTest | ||
{ | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
test/LightStep.TracerPerf.Tests/LightStep.TracerPerf.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
<RootNamespace>LightStep.TracerPerf.Tests</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
<WarningsAsErrors /> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<WarningsAsErrors /> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Serilog" Version="2.10.0" /> | ||
<PackageReference Include="Serilog.Sinks.Console" Version="3.0.0" /> | ||
<PackageReference Include="FakeItEasy" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.4" /> | ||
<PackageReference Include="NUnit" Version="3.12.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="3.16.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\LightStep\LightStep.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# tracer-tests | ||
For benchmarking tracers of distributed tracing that implements OpenTracing | ||
|
||
To collect data in terms of memory, network, and log usages, bring in tracer dependencies and run the NUnit tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using NUnit.Framework; | ||
using Serilog; | ||
|
||
namespace LightStep.TracerPerf.Tests | ||
{ | ||
public class TracerLogTest : TracerTestBase | ||
{ | ||
[SetUp] | ||
public void SetUp() | ||
{ | ||
Log.Logger = new LoggerConfiguration() | ||
.MinimumLevel.Verbose() | ||
.WriteTo.Console() | ||
.CreateLogger(); | ||
|
||
Log.Information("Log is setup!"); | ||
} | ||
|
||
[Test] | ||
public void TestExecute([Values("NoFinishNoDispose", "ExplicitFinish", "FinishOnDispose", "DisposeNoFinish")] | ||
string tracingMethod) | ||
{ | ||
Execute(TracingMethods[tracingMethod]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
using System; | ||
using NUnit.Framework; | ||
|
||
namespace LightStep.TracerPerf.Tests | ||
{ | ||
[SingleThreaded] | ||
public class TracerMemoryTest : TracerTestBase | ||
{ | ||
[SetUp] | ||
public void SetUp() | ||
{ | ||
Iter = 100; | ||
Chunk = 10000; | ||
} | ||
|
||
[Test] | ||
public void TestExecute_NoFinishNoDispose() | ||
{ | ||
Console.WriteLine(nameof(NoFinishNoDispose)); | ||
var heapInfo = Execute(NoFinishNoDispose); | ||
foreach (var num in heapInfo) | ||
{ | ||
Console.WriteLine(num); | ||
} | ||
} | ||
|
||
[Test] | ||
public void TestExecute_ExplicitFinish() | ||
{ | ||
Console.WriteLine(nameof(ExplicitFinish)); | ||
var heapInfo = Execute(ExplicitFinish); | ||
foreach (var num in heapInfo) | ||
{ | ||
Console.WriteLine(num); | ||
} | ||
} | ||
|
||
[Test] | ||
public void TestExecute_FinishOnDispose() | ||
{ | ||
Console.WriteLine(nameof(FinishOnDispose)); | ||
var heapInfo = Execute(FinishOnDispose); | ||
foreach (var num in heapInfo) | ||
{ | ||
Console.WriteLine(num); | ||
} | ||
} | ||
|
||
[Test] | ||
public void TestExecute_DisposeNoFinish() | ||
{ | ||
Console.WriteLine(nameof(DisposeNoFinish)); | ||
var heapInfo = Execute(DisposeNoFinish); | ||
foreach (var num in heapInfo) | ||
{ | ||
Console.WriteLine(num); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.