give useful names to benchmarks

pull/19515/head
mgravell 6 years ago
parent aa535356e8
commit 36c1a11d84
  1. 42
      grpcpp_channelz.vcxproj.filters
  2. 2
      src/csharp/Grpc.Microbenchmarks/CompletionRegistryBenchmark.cs
  3. 2
      src/csharp/Grpc.Microbenchmarks/PInvokeByteArrayBenchmark.cs
  4. 4
      src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs
  5. 2
      src/csharp/Grpc.Microbenchmarks/Utf8Decode.cs
  6. 2
      src/csharp/Grpc.Microbenchmarks/Utf8Encode.cs

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="C:\Code\grpc\src\cpp\server\channelz\channelz_service.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="C:\Code\grpc\src\cpp\server\channelz\channelz_service_plugin.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="C:\Code\grpc\gens\src\proto\grpc\channelz\channelz.pb.cc">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="C:\Code\grpc\gens\src\proto\grpc\channelz\channelz.grpc.pb.cc">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="C:\Code\grpc\gens\src\proto\grpc\channelz\channelz.pb.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="C:\Code\grpc\gens\src\proto\grpc\channelz\channelz.grpc.pb.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="C:\Code\grpc\CMakeFiles\8abb82d9b287daeb9cbf41efb943853b\channelz.grpc.pb.cc.rule">
<Filter>CMake Rules</Filter>
</CustomBuild>
<CustomBuild Include="C:\Code\grpc\CMakeLists.txt" />
</ItemGroup>
<ItemGroup>
<Filter Include="CMake Rules">
<UniqueIdentifier>{870DBD13-69C5-3F27-A253-623E8947E2E7}</UniqueIdentifier>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{67AA517E-A3B4-3BFF-B690-252465A3B876}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{B3AFD131-5BE8-3F8D-8C68-1BD558A25862}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>

@ -29,7 +29,7 @@ namespace Grpc.Microbenchmarks
const int Iterations = 1000;
[Benchmark(OperationsPerInvoke = Iterations)]
public void Run()
public void RegisterExtract()
{
RunConcurrent(() => {
CompletionRegistry sharedRegistry = UseSharedRegistry ? new CompletionRegistry(Environment, () => BatchContextSafeHandle.Create(), () => RequestCallContextSafeHandle.Create()) : null;

@ -34,7 +34,7 @@ namespace Grpc.Microbenchmarks
const int Iterations = 1000;
[Benchmark(OperationsPerInvoke = Iterations)]
public void Run()
public void AllocFree()
{
RunConcurrent(RunBody);
}

@ -1,4 +1,4 @@
#region Copyright notice and license
#region Copyright notice and license
// Copyright 2015 gRPC authors.
//
@ -38,7 +38,7 @@ namespace Grpc.Microbenchmarks
const int Iterations = 1000;
[Benchmark(OperationsPerInvoke = Iterations)]
public void Run()
public void SendMessage()
{
RunConcurrent(RunBody);
}

@ -37,7 +37,7 @@ namespace Grpc.Microbenchmarks
const int Iterations = 1000;
[Benchmark(OperationsPerInvoke = Iterations)]
public unsafe void Run()
public unsafe void Decode()
{
fixed (byte* ptr = payload)
{

@ -95,7 +95,7 @@ namespace Grpc.Microbenchmarks
const int Iterations = 1000;
[Benchmark(OperationsPerInvoke = Iterations)]
public unsafe void Run()
public unsafe void SendStatus()
{
for (int i = 0; i < Iterations; i++)
{

Loading…
Cancel
Save