|
|
@ -74,6 +74,8 @@ namespace Grpc.Core.Tests |
|
|
|
/// (~110ns .NET Windows) |
|
|
|
/// (~110ns .NET Windows) |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Category("Performance")] |
|
|
|
|
|
|
|
[Ignore("Prevent running on Jenkins")] |
|
|
|
public void NativeCallbackBenchmark() |
|
|
|
public void NativeCallbackBenchmark() |
|
|
|
{ |
|
|
|
{ |
|
|
|
OpCompletionDelegate handler = Handler; |
|
|
|
OpCompletionDelegate handler = Handler; |
|
|
@ -95,6 +97,8 @@ namespace Grpc.Core.Tests |
|
|
|
/// (~1.1us on .NET Windows) |
|
|
|
/// (~1.1us on .NET Windows) |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Category("Performance")] |
|
|
|
|
|
|
|
[Ignore("Prevent running on Jenkins")] |
|
|
|
public void NewNativeCallbackBenchmark() |
|
|
|
public void NewNativeCallbackBenchmark() |
|
|
|
{ |
|
|
|
{ |
|
|
|
counter = 0; |
|
|
|
counter = 0; |
|
|
@ -112,6 +116,8 @@ namespace Grpc.Core.Tests |
|
|
|
/// (~46ns .NET Windows) |
|
|
|
/// (~46ns .NET Windows) |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
|
|
|
|
[Category("Performance")] |
|
|
|
|
|
|
|
[Ignore("Prevent running on Jenkins")] |
|
|
|
public void NopPInvokeBenchmark() |
|
|
|
public void NopPInvokeBenchmark() |
|
|
|
{ |
|
|
|
{ |
|
|
|
BenchmarkUtil.RunBenchmark( |
|
|
|
BenchmarkUtil.RunBenchmark( |
|
|
|