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
131d2f19
Commit
131d2f19
authored
7 years ago
by
ncteisen
Browse files
Options
Downloads
Patches
Plain Diff
Few more bm trickle fixes
parent
1da91b3a
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_trickle.cc
+2
-8
2 additions, 8 deletions
test/cpp/microbenchmarks/bm_fullstack_trickle.cc
with
2 additions
and
8 deletions
test/cpp/microbenchmarks/bm_fullstack_trickle.cc
+
2
−
8
View file @
131d2f19
...
...
@@ -334,7 +334,7 @@ BENCHMARK(BM_PumpStreamServerToClient_Trickle)->Apply(StreamingTrickleArgs);
static
void
BM_PumpUnbalancedUnary_Trickle
(
benchmark
::
State
&
state
)
{
EchoTestService
::
AsyncService
service
;
std
::
unique_ptr
<
TrickledCHTTP2
>
fixture
(
new
TrickledCHTTP2
(
&
service
,
tru
e
,
state
.
range
(
0
)
/* req_size */
,
&
service
,
fals
e
,
state
.
range
(
0
)
/* req_size */
,
state
.
range
(
1
)
/* resp_size */
,
state
.
range
(
2
)
/* bw in kbit/s */
));
EchoRequest
send_request
;
EchoResponse
send_response
;
...
...
@@ -374,7 +374,7 @@ static void BM_PumpUnbalancedUnary_Trickle(benchmark::State& state) {
stub
->
AsyncEcho
(
&
cli_ctx
,
send_request
,
fixture
->
cq
()));
void
*
t
;
bool
ok
;
TrickleCQNext
(
fixture
.
get
(),
&
t
,
&
ok
,
state
.
iterations
());
TrickleCQNext
(
fixture
.
get
(),
&
t
,
&
ok
,
in_warmup
?
-
1
:
state
.
iterations
());
GPR_ASSERT
(
ok
);
GPR_ASSERT
(
t
==
tag
(
0
)
||
t
==
tag
(
1
));
intptr_t
slot
=
reinterpret_cast
<
intptr_t
>
(
t
);
...
...
@@ -420,12 +420,6 @@ static void BM_PumpUnbalancedUnary_Trickle(benchmark::State& state) {
}
static
void
UnaryTrickleArgs
(
benchmark
::
internal
::
Benchmark
*
b
)
{
// A selection of interesting numbers
const
int
cli_1024k
=
1024
*
1024
;
const
int
cli_32M
=
32
*
1024
*
1024
;
const
int
svr_256k
=
256
*
1024
;
const
int
svr_4M
=
4
*
1024
*
1024
;
const
int
svr_64M
=
64
*
1024
*
1024
;
for
(
int
bw
=
64
;
bw
<=
128
*
1024
*
1024
;
bw
*=
16
)
{
b
->
Args
({
1
,
1
,
bw
});
for
(
int
i
=
64
;
i
<=
128
*
1024
*
1024
;
i
*=
64
)
{
...
...
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