From 5b141669e6e2cf8f93ee2150cc60fcb154ac54c0 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 23 Feb 2015 20:28:30 -0800 Subject: [PATCH] Added some measurement numbers to comments. --- src/csharp/Grpc.Core.Tests/PInvokeTest.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/csharp/Grpc.Core.Tests/PInvokeTest.cs b/src/csharp/Grpc.Core.Tests/PInvokeTest.cs index b78609ccf08..282d521ba37 100644 --- a/src/csharp/Grpc.Core.Tests/PInvokeTest.cs +++ b/src/csharp/Grpc.Core.Tests/PInvokeTest.cs @@ -65,6 +65,9 @@ namespace Grpc.Core.Tests GrpcEnvironment.Shutdown(); } + /// + /// (~1.26us .NET Windows) + /// [Test] public void CompletionQueueCreateDestroyBenchmark() { @@ -80,7 +83,8 @@ namespace Grpc.Core.Tests /// /// Approximate results: - /// (mono ~80ns) + /// (~80ns Mono Linux) + /// (~110ns .NET Windows) /// [Test] public void NativeCallbackBenchmark() @@ -100,7 +104,8 @@ namespace Grpc.Core.Tests /// /// Creating a new native-to-managed callback has significant overhead /// compared to using an existing one. We need to be aware of this. - /// (~50us on mono) + /// (~50us on Mono Linux!!!) + /// (~1.1us on .NET Windows) /// [Test] public void NewNativeCallbackBenchmark() @@ -117,6 +122,7 @@ namespace Grpc.Core.Tests /// /// Tests overhead of a simple PInvoke call. + /// (~46ns .NET Windows) /// [Test] public void NopPInvokeBenchmark()