grpc
tools
profiling
microbenchmarks
bm_diff
bm_constants.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
#
3
# Copyright 2017 gRPC authors.
4
#
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
# you may not use this file except in compliance with the License.
7
# You may obtain a copy of the License at
8
#
9
# http://www.apache.org/licenses/LICENSE-2.0
10
#
11
# Unless required by applicable law or agreed to in writing, software
12
# distributed under the License is distributed on an "AS IS" BASIS,
13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
# See the License for the specific language governing permissions and
15
# limitations under the License.
16
""" Configurable constants for the bm_*.py family """
17
18
_AVAILABLE_BENCHMARK_TESTS = [
19
'bm_fullstack_unary_ping_pong'
,
20
'bm_fullstack_streaming_ping_pong'
,
21
'bm_fullstack_streaming_pump'
,
22
'bm_closure'
,
23
'bm_cq'
,
24
'bm_call_create'
,
25
'bm_chttp2_hpack'
,
26
'bm_chttp2_transport'
,
27
'bm_pollset'
,
28
]
29
30
_INTERESTING = (
'cpu_time'
,
'real_time'
,
'locks_per_iteration'
,
31
'allocs_per_iteration'
,
'writes_per_iteration'
,
32
'atm_cas_per_iteration'
,
'atm_add_per_iteration'
,
33
'nows_per_iteration'
,
'cli_transport_stalls_per_iteration'
,
34
'cli_stream_stalls_per_iteration'
,
35
'svr_transport_stalls_per_iteration'
,
36
'svr_stream_stalls_per_iteration'
,
37
'http2_pings_sent_per_iteration'
)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:48