Skip to content

C# benchmark improvements#13418

Merged
jtattermusch merged 2 commits intogrpc:masterfrom
jtattermusch:csharp_honor_optimizationtarget
Nov 17, 2017
Merged

C# benchmark improvements#13418
jtattermusch merged 2 commits intogrpc:masterfrom
jtattermusch:csharp_honor_optimizationtarget

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

-- honor the "grpc.optimization_target" channel argument when set by scenario_config.py
-- balance out queuedContinuationCounter when inlineHandlers==true (values were only getting decremented, not incremented).

var callback = cq.CompletionRegistry.Extract(tag);
// Use cached delegates to avoid unnecessary allocations
queuedContinuationCounter.Increment();
if (!inlineHandlers)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Realizing now, are we not setting inlineHandlers to true anywhere, including benchmarks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's not being used in benchmarks because I thought it's also important to tests the performance with the "default" settings (right now the C# performance actually isn't much different with inlineHandlers==true because there are some other bottlenecks - i'm investigating).

Copy link
Copy Markdown
Contributor

@apolcyn apolcyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had one question, but lgtm

@jtattermusch jtattermusch merged commit d9186a7 into grpc:master Nov 17, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants