Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/locustio/locust
/ functions
Functions
1,982 in github.com/locustio/locust
⨍
Functions
1,982
◇
Types & classes
577
↳
Endpoints
63
↓ 2 callers
Method
upsert
(self, data)
locust/contrib/milvus.py:32
↓ 2 callers
Function
useCreateTheme
()
locust/webui/src/hooks/useCreateTheme.ts:7
↓ 2 callers
Function
useFetchExceptions
()
locust/webui/src/hooks/useFetchExceptions.ts:9
↓ 2 callers
Function
useFetchStats
()
locust/webui/src/hooks/useFetchStats.ts:13
↓ 2 callers
Function
useFetchTasks
()
locust/webui/src/hooks/useFetchTasks.ts:9
↓ 2 callers
Function
useLogViewer
()
locust/webui/src/components/LogViewer/useLogViewer.ts:15
↓ 2 callers
Function
useNotifications
( data: any[], { key, shouldNotify }: { key: string; shouldNotify?: (key: string) => boolean }, )
locust/webui/src/hooks/useNotifications.ts:6
↓ 2 callers
Function
useSortByField
( rows: Row[], { hasTotalRow = false, defaultSortKey = 'name' as keyof Row }: ISortByFieldOptions<Row> = {
locust/webui/src/hooks/useSortByField.ts:27
↓ 2 callers
Function
validate
( name: string, value: string, rules: ValidationRules, { onlyDelete } = { onlyDelete: false },
locust/webui/src/hooks/useForm.ts:21
↓ 1 callers
Method
SayHello
( request, target, options=(), channel_credentials=None, call_credenti
examples/grpc/hello_pb2_grpc.py:51
↓ 1 callers
Method
__exit__
(self, exc, value, traceback)
locust/clients.py:399
↓ 1 callers
Method
__init__
(self)
locust/event.py:289
↓ 1 callers
Method
__init__
(self, environment: Environment, percentiles_to_report: list[float])
locust/stats.py:1000
↓ 1 callers
Method
__init__
(self, environment: Environment)
locust/contrib/mqtt.py:531
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
locust/contrib/mongodb.py:36
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
locust/contrib/socketio.py:95
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
locust/contrib/oai.py:67
↓ 1 callers
Method
__init__
(self, environment)
locust/user/users.py:131
↓ 1 callers
Method
__init__
(self, host, port)
locust/rpc/zmqrpc.py:78
↓ 1 callers
Method
__init__
(self, environment)
examples/grpc/grpc_user.py:54
↓ 1 callers
Method
__init__
(self, environment)
examples/custom_xmlrpc_client/xmlrpc_locustfile.py:50
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
examples/custom_shape/wait_user_count.py:18
↓ 1 callers
Method
_add_users_on_workers
Add users on the workers until the target number of users is reached for the current dispatch iteration :return: The users that we want to ru
locust/dispatch.py:291
↓ 1 callers
Function
_aggregate_dispatched_users
(d: dict[str, dict[str, int]])
locust/runners.py:1526
↓ 1 callers
Method
_build_url
prepend url with hostname unless it's already an absolute URL
locust/clients.py:126
↓ 1 callers
Method
_build_url
prepend url with hostname unless it's already an absolute URL
locust/contrib/fasthttp.py:159
↓ 1 callers
Method
_dispatcher
(self)
locust/dispatch.py:152
↓ 1 callers
Function
_doctree_to_markdown
Convert a Sphinx doctree to Markdown using sphinx-markdown-builder's translator.
docs/_ext/llms_txt.py:78
↓ 1 callers
Method
_fire_recall_event
Emit a Locust request event for recall metric using recall value instead of response time.
locust/contrib/milvus.py:336
↓ 1 callers
Function
_generate_llms_full_txt
Generate the llms-full.txt full content.
docs/_ext/llms_txt.py:188
↓ 1 callers
Function
_generate_llms_txt
Generate the llms.txt index content.
docs/_ext/llms_txt.py:162
↓ 1 callers
Function
_generate_mqtt_event_name
Generate a name to identify publish/subscribe tasks. This will be used to ultimately identify tasks in the Locust web console. This will iden
locust/contrib/mqtt.py:44
↓ 1 callers
Function
_generate_random_id
Generate a random ID from the given alphabet. Args: length: the number of random characters to generate. alphabet: the pool of ra
locust/contrib/mqtt.py:31
↓ 1 callers
Function
_get_first_paragraph
Extract the first paragraph text from a doctree for use as a description.
docs/_ext/llms_txt.py:91
↓ 1 callers
Function
_get_section_groups
Parse the master document's toctree to get section groups. Returns a list of (section_title, [docnames]) pairs based on the master doc structure.
docs/_ext/llms_txt.py:110
↓ 1 callers
Method
_log_response_time
(self, response_time: int)
locust/stats.py:391
↓ 1 callers
Method
_log_time_of_request
(self, current_time: float)
locust/stats.py:386
↓ 1 callers
Method
_loop_selectors
(self, timeout: float = 1.0)
locust/contrib/mqtt.py:343
↓ 1 callers
Function
_make_environment
()
locust/test/test_csv_request_logger.py:13
↓ 1 callers
Method
_on_subscribe_cb_v3x
( self, client: mqtt.Client, userdata: typing.Any, mid: int, granted_q
locust/contrib/mqtt.py:168
↓ 1 callers
Method
_open
Open (or re-open) the CSV file and write the header row.
locust/contrib/csv_request_logger.py:139
↓ 1 callers
Function
_parse_locustfile_path
(path: str)
locust/argument_parser.py:169
↓ 1 callers
Function
_print_task_ratio
(x, level=0)
locust/user/inspectuser.py:44
↓ 1 callers
Method
_remove_users_from_workers
Remove users from the workers until the target number of users is reached for the current dispatch iteration :return: The users that we want
locust/dispatch.py:313
↓ 1 callers
Method
_send_request_safe_mode
Send an HTTP request, and catch any exception that might occur due to connection problems. Safe mode has been removed from requests
locust/clients.py:243
↓ 1 callers
Method
_send_request_safe_mode
Send an HTTP request, and catch any exception that might occur due to either connection problems, or invalid HTTP status codes
locust/contrib/fasthttp.py:166
↓ 1 callers
Function
_setup_auto_instrumentation
()
locust/opentelemetry.py:229
↓ 1 callers
Function
_setup_logger_provider
(resource, logs_exporters)
locust/opentelemetry.py:171
↓ 1 callers
Function
_setup_meter_provider
(resource, metrics_exporters)
locust/opentelemetry.py:120
↓ 1 callers
Function
_setup_tracer_provider
(resource, traces_exporters)
locust/opentelemetry.py:75
↓ 1 callers
Method
_sleep
(self, seconds)
locust/user/task.py:470
↓ 1 callers
Method
_start
Start running a load test :param user_count: Total number of users to start :param spawn_rate: Number of users to spawn per
locust/runners.py:466
↓ 1 callers
Method
_stats_history_data_rows
Write CSV rows with the *current* stats. By default only includes the Aggregated stats entry, but if self.full_history is set to True
locust/stats.py:1195
↓ 1 callers
Method
_update_user_classes
(self, user_classes)
locust/web.py:770
↓ 1 callers
Function
addColumn
(column: string)
locust/webui/src/hooks/useSelectViewColumns.ts:14
↓ 1 callers
Function
addSpaceToChartsBetweenTests
(charts: ICharts)
locust/webui/src/redux/slice/ui.slice.ts:52
↓ 1 callers
Function
cache_csv
Returns the cache stats as CSV.
examples/web_ui_cache_stats.py:147
↓ 1 callers
Function
canSubmitSwarmForm
({ isDisabled, isDistributed, workerCount, }: ICanSubmitForm)
locust/webui/src/components/SwarmForm/SwarmForm.tsx:84
↓ 1 callers
Method
close
(self)
locust/contrib/qdrant.py:26
↓ 1 callers
Method
close
(self)
locust/contrib/postgres.py:33
↓ 1 callers
Method
connect
(self, *args, **kwargs)
locust/test/test_socketio.py:13
↓ 1 callers
Method
connect_to_master
(self)
locust/runners.py:1496
↓ 1 callers
Function
constant_throughput
Returns a function that will track the run time of the tasks, and for each time it's called it will return a wait time that will try to make
locust/user/wait_time.py:63
↓ 1 callers
Function
content_length_csv
Returns the content-length stats as CSV.
examples/extend_web_ui.py:125
↓ 1 callers
Function
createStore
(initialState = {})
locust/webui/src/test/testUtils.tsx:8
↓ 1 callers
Function
createYAxis
({ splitAxis, yAxisLabels, }: Pick<ILineChart<ChartType>, 'splitAxis' | 'yAxisLabels'>)
locust/webui/src/components/LineChart/LineChart.utils.ts:36
↓ 1 callers
Method
create_collection
(self, vectors_config, **kwargs)
locust/contrib/qdrant.py:29
↓ 1 callers
Function
decorator_func
(func)
locust/user/task.py:78
↓ 1 callers
Function
default_args_dict
()
locust/argument_parser.py:921
↓ 1 callers
Function
dfs
(task_name)
locust/user/markov_taskset.py:201
↓ 1 callers
Function
download_locustfile_from_master
(master_host: str, master_port: int)
locust/argument_parser.py:263
↓ 1 callers
Function
download_locustfile_from_url
Attempt to download and save locustfile from url. Returns path to downloaded file.
locust/argument_parser.py:192
↓ 1 callers
Method
emit
(self, *args, **kwargs)
locust/test/test_socketio.py:14
↓ 1 callers
Method
exceptions_flush
(self)
locust/stats.py:1243
↓ 1 callers
Method
execute_task
(self, task)
locust/user/task.py:398
↓ 1 callers
Method
failures_csv
(self, csv_writer: CSVWriter)
locust/stats.py:1072
↓ 1 callers
Method
failures_flush
(self)
locust/stats.py:1240
↓ 1 callers
Function
filterStructure
(structure: ITableStructure[])
locust/webui/src/hooks/useSelectViewColumns.ts:10
↓ 1 callers
Function
flatten
(array: any[])
locust/webui/src/utils/array.ts:1
↓ 1 callers
Function
generate
()
locust/test/testcases.py:123
↓ 1 callers
Function
getInputValue
(inputElement: HTMLInputElement | HTMLSelectElement)
locust/webui/src/components/Form/Form.tsx:14
↓ 1 callers
Function
getLogColor
(log: string)
locust/webui/src/components/LogViewer/LogDisplay.tsx:4
↓ 1 callers
Function
getRatioPercent
(ratio: number)
locust/webui/src/components/SwarmRatios/SwarmRatios.tsx:4
↓ 1 callers
Function
get_cache_stats
This is used by the Cache tab in the extended web UI to show the stats.
examples/web_ui_cache_stats.py:69
↓ 1 callers
Function
get_content_length_stats
This is used by the Content Length tab in the extended web UI to show the stats.
examples/extend_web_ui.py:54
↓ 1 callers
Function
get_error_report_summary
(stats)
locust/stats.py:932
↓ 1 callers
Function
get_markov_tasks
Extracts all Markov tasks from a class dictionary. This function is used internally by MarkovTaskSetMeta to find all methods that have b
locust/user/markov_taskset.py:124
↓ 1 callers
Function
get_percentile_stats_summary
Percentile stats summary will be returned as list of string
locust/stats.py:901
↓ 1 callers
Function
get_poller
()
locust/input_events.py:91
↓ 1 callers
Method
get_recall
Calculate recall for V2 client search results.
locust/contrib/milvus.py:200
↓ 1 callers
Function
get_stats_summary
stats summary will be returned as list of string
locust/stats.py:875
↓ 1 callers
Function
gt_zero
(t)
locust/argument_parser.py:435
↓ 1 callers
Function
handleToggleUserSelected
(name: string)
locust/webui/src/components/SwarmForm/SwarmUserClassPicker.tsx:105
↓ 1 callers
Method
handle_message
(self, client_id: str, msg: Message)
locust/runners.py:1015
↓ 1 callers
Method
handle_message
(self, msg: Message)
locust/runners.py:1365
↓ 1 callers
Function
handler
(greenlet)
locust/runners.py:69
↓ 1 callers
Function
helper_function
(session: HttpSession)
examples/test_pytest.py:39
↓ 1 callers
Method
index
(self)
locust/test/test_env.py:77
↓ 1 callers
Method
index_page
(self)
examples/browse_docs_test.py:18
↓ 1 callers
Function
init
(environment: Environment, **_kwargs: Any)
examples/test_data_management.py:53
← previous
next →
301–400 of 1,982, ranked by callers