xref: /aosp_15_r20/external/grpc-grpc/tools/profiling/microbenchmarks/bm_diff/bm_constants.py (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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_chttp2_hpack",
25    "bm_chttp2_transport",
26]
27
28_INTERESTING = (
29    "cpu_time",
30    "real_time",
31    "locks_per_iteration",
32    "allocs_per_iteration",
33    "writes_per_iteration",
34    "atm_cas_per_iteration",
35    "atm_add_per_iteration",
36    "nows_per_iteration",
37    "cli_transport_stalls_per_iteration",
38    "cli_stream_stalls_per_iteration",
39    "svr_transport_stalls_per_iteration",
40    "svr_stream_stalls_per_iteration",
41    "http2_pings_sent_per_iteration",
42)
43