Classes | Functions | Variables
performance.scenario_config Namespace Reference

Classes

class  CSharpLanguage
 
class  CXXLanguage
 
class  DotnetLanguage
 
class  GoLanguage
 
class  JavaLanguage
 
class  Language
 
class  NodeLanguage
 
class  Php7Language
 
class  PythonAsyncIOLanguage
 
class  PythonLanguage
 
class  RubyLanguage
 

Functions

def _add_channel_arg (config, key, value)
 
def _get_secargs (is_secure)
 
def _load_params (offered_load)
 
def _payload_type (use_generic_payload, req_size, resp_size)
 
def _ping_pong_scenario (name, rpc_type, client_type, server_type, secure=True, use_generic_payload=False, req_size=0, resp_size=0, unconstrained_client=None, client_language=None, server_language=None, async_server_threads=0, client_processes=0, server_processes=0, server_threads_per_cq=0, client_threads_per_cq=0, warmup_seconds=WARMUP_SECONDS, categories=None, channels=None, outstanding=None, num_clients=None, resource_quota_size=None, messages_per_stream=None, excluded_poll_engines=None, minimal_stack=False, offered_load=None)
 
def geometric_progression (start, stop, step)
 
def remove_nonproto_fields (scenario)
 

Variables

int BENCHMARK_SECONDS = 30
 
tuple DEFAULT_CATEGORIES = (SCALABLE, SMOKETEST)
 
dictionary HISTOGRAM_PARAMS
 
string INPROC = 'inproc'
 
int JAVA_WARMUP_SECONDS = 15
 
dictionary LANGUAGES
 
dictionary OUTSTANDING_REQUESTS = {'async': 6400, 'async-limited': 800, 'sync': 1000}
 
string PSM = 'psm'
 
string SCALABLE = 'scalable'
 
dictionary SECURE_SECARGS
 
string SMOKETEST = 'smoketest'
 
string SWEEP = 'sweep'
 
int WARMUP_SECONDS = 5
 
int WIDE = 64
 

Function Documentation

◆ _add_channel_arg()

def performance.scenario_config._add_channel_arg (   config,
  key,
  value 
)
private

Definition at line 100 of file scenario_config.py.

◆ _get_secargs()

def performance.scenario_config._get_secargs (   is_secure)
private

Definition at line 49 of file scenario_config.py.

◆ _load_params()

def performance.scenario_config._load_params (   offered_load)
private

Definition at line 89 of file scenario_config.py.

◆ _payload_type()

def performance.scenario_config._payload_type (   use_generic_payload,
  req_size,
  resp_size 
)
private

Definition at line 76 of file scenario_config.py.

◆ _ping_pong_scenario()

def performance.scenario_config._ping_pong_scenario (   name,
  rpc_type,
  client_type,
  server_type,
  secure = True,
  use_generic_payload = False,
  req_size = 0,
  resp_size = 0,
  unconstrained_client = None,
  client_language = None,
  server_language = None,
  async_server_threads = 0,
  client_processes = 0,
  server_processes = 0,
  server_threads_per_cq = 0,
  client_threads_per_cq = 0,
  warmup_seconds = WARMUP_SECONDS,
  categories = None,
  channels = None,
  outstanding = None,
  num_clients = None,
  resource_quota_size = None,
  messages_per_stream = None,
  excluded_poll_engines = None,
  minimal_stack = False,
  offered_load = None 
)
private
Creates a basic ping pong scenario.

Definition at line 114 of file scenario_config.py.

◆ geometric_progression()

def performance.scenario_config.geometric_progression (   start,
  stop,
  step 
)

Definition at line 69 of file scenario_config.py.

◆ remove_nonproto_fields()

def performance.scenario_config.remove_nonproto_fields (   scenario)
Removes special-purpose fields that don't belong in the protobuf.

This function removes additional information about the scenario that is not
included in the ScenarioConfig protobuf message.

Definition at line 56 of file scenario_config.py.

Variable Documentation

◆ BENCHMARK_SECONDS

int performance.scenario_config.BENCHMARK_SECONDS = 30

Definition at line 21 of file scenario_config.py.

◆ DEFAULT_CATEGORIES

tuple performance.scenario_config.DEFAULT_CATEGORIES = (SCALABLE, SMOKETEST)

Definition at line 28 of file scenario_config.py.

◆ HISTOGRAM_PARAMS

dictionary performance.scenario_config.HISTOGRAM_PARAMS
Initial value:
1 = {
2  'resolution': 0.01,
3  'max_possible': 60e9,
4 }

Definition at line 35 of file scenario_config.py.

◆ INPROC

string performance.scenario_config.INPROC = 'inproc'

Definition at line 25 of file scenario_config.py.

◆ JAVA_WARMUP_SECONDS

int performance.scenario_config.JAVA_WARMUP_SECONDS = 15

Definition at line 20 of file scenario_config.py.

◆ LANGUAGES

dictionary performance.scenario_config.LANGUAGES
Initial value:
1 = {
2  'c++': CXXLanguage(),
3  'csharp': CSharpLanguage(),
4  'dotnet': DotnetLanguage(),
5  'ruby': RubyLanguage(),
6  'php7': Php7Language(),
7  'php7_protobuf_c': Php7Language(php7_protobuf_c=True),
8  'java': JavaLanguage(),
9  'python': PythonLanguage(),
10  'python_asyncio': PythonAsyncIOLanguage(),
11  'go': GoLanguage(),
12  'node': NodeLanguage(),
13  'node_purejs': NodeLanguage(node_purejs=True)
14 }

Definition at line 1590 of file scenario_config.py.

◆ OUTSTANDING_REQUESTS

dictionary performance.scenario_config.OUTSTANDING_REQUESTS = {'async': 6400, 'async-limited': 800, 'sync': 1000}

Definition at line 43 of file scenario_config.py.

◆ PSM

string performance.scenario_config.PSM = 'psm'

Definition at line 27 of file scenario_config.py.

◆ SCALABLE

string performance.scenario_config.SCALABLE = 'scalable'

Definition at line 24 of file scenario_config.py.

◆ SECURE_SECARGS

dictionary performance.scenario_config.SECURE_SECARGS
Initial value:
1 = {
2  'use_test_ca': True,
3  'server_host_override': 'foo.test.google.fr'
4 }

Definition at line 30 of file scenario_config.py.

◆ SMOKETEST

string performance.scenario_config.SMOKETEST = 'smoketest'

Definition at line 23 of file scenario_config.py.

◆ SWEEP

string performance.scenario_config.SWEEP = 'sweep'

Definition at line 26 of file scenario_config.py.

◆ WARMUP_SECONDS

int performance.scenario_config.WARMUP_SECONDS = 5

Definition at line 19 of file scenario_config.py.

◆ WIDE

int performance.scenario_config.WIDE = 64

Definition at line 46 of file scenario_config.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41