Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
8c744457
Commit
8c744457
authored
8 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Fix tracking of writes: we dont need TrackCounters for bm_fullstack since the fixture does it
parent
18f5b66b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
+0
-4
0 additions, 4 deletions
test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
with
0 additions
and
4 deletions
test/cpp/microbenchmarks/bm_fullstack_streaming_ping_pong.cc
+
0
−
4
View file @
8c744457
...
...
@@ -63,7 +63,6 @@ static void* tag(intptr_t x) { return reinterpret_cast<void*>(x); }
// the other from server to client):
template
<
class
Fixture
,
class
ClientContextMutator
,
class
ServerContextMutator
>
static
void
BM_StreamingPingPong
(
benchmark
::
State
&
state
)
{
TrackCounters
track_counters
;
const
int
msg_size
=
state
.
range
(
0
);
const
int
max_ping_pongs
=
state
.
range
(
1
);
...
...
@@ -152,14 +151,12 @@ static void BM_StreamingPingPong(benchmark::State& state) {
fixture
->
Finish
(
state
);
fixture
.
reset
();
state
.
SetBytesProcessed
(
msg_size
*
state
.
iterations
()
*
max_ping_pongs
*
2
);
track_counters
.
Finish
(
state
);
}
// Repeatedly sends ping pong messages in a single streaming Bidi call in a loop
// First parmeter (i.e state.range(0)): Message size (in bytes) to use
template
<
class
Fixture
,
class
ClientContextMutator
,
class
ServerContextMutator
>
static
void
BM_StreamingPingPongMsgs
(
benchmark
::
State
&
state
)
{
TrackCounters
track_counters
;
const
int
msg_size
=
state
.
range
(
0
);
EchoTestService
::
AsyncService
service
;
...
...
@@ -241,7 +238,6 @@ static void BM_StreamingPingPongMsgs(benchmark::State& state) {
fixture
->
Finish
(
state
);
fixture
.
reset
();
state
.
SetBytesProcessed
(
msg_size
*
state
.
iterations
()
*
2
);
track_counters
.
Finish
(
state
);
}
/*******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment