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', 'bm_fullstack_streaming_ping_pong',
20    'bm_fullstack_streaming_pump', 'bm_closure', 'bm_cq', 'bm_call_create',
21    'bm_error', 'bm_chttp2_hpack', 'bm_chttp2_transport', 'bm_pollset',
22    'bm_metadata', 'bm_fullstack_trickle'
23]
24
25_INTERESTING = ('cpu_time', 'real_time', 'locks_per_iteration',
26                'allocs_per_iteration', 'writes_per_iteration',
27                'atm_cas_per_iteration', 'atm_add_per_iteration',
28                'nows_per_iteration', 'cli_transport_stalls_per_iteration',
29                'cli_stream_stalls_per_iteration',
30                'svr_transport_stalls_per_iteration',
31                'svr_stream_stalls_per_iteration',
32                'http2_pings_sent_per_iteration')
33