Functions | |
| def | _CallableT |
| def | filtering_entity_id (hass) |
| def | fire_events (hass) |
| def | fire_events_with_filter (hass) |
| def | json_serialize_states (hass) |
| def | run (args) |
| def | run_benchmark (bench) |
| def | state_changed_event_filter_helper (hass) |
| def | state_changed_event_helper (hass) |
| def | state_changed_helper (hass) |
| def | valid_entity_id (hass) |
Script to run benchmarks.
|
private |
Definition at line 54 of file __init__.py.
| def homeassistant.scripts.benchmark.filtering_entity_id | ( | hass | ) |
Run a 100k state changes through entity filter.
Definition at line 227 of file __init__.py.
| def homeassistant.scripts.benchmark.fire_events | ( | hass | ) |
Fire a million events.
Definition at line 61 of file __init__.py.
| def homeassistant.scripts.benchmark.fire_events_with_filter | ( | hass | ) |
Fire a million events with a filter that rejects them.
Definition at line 88 of file __init__.py.
| def homeassistant.scripts.benchmark.json_serialize_states | ( | hass | ) |
Serialize million states with websocket default encoder.
Definition at line 301 of file __init__.py.
| def homeassistant.scripts.benchmark.run | ( | args | ) |
Handle benchmark commandline script.
Definition at line 27 of file __init__.py.
| def homeassistant.scripts.benchmark.run_benchmark | ( | bench | ) |
Run a benchmark.
Definition at line 46 of file __init__.py.
| def homeassistant.scripts.benchmark.state_changed_event_filter_helper | ( | hass | ) |
Run a million events through state changed event helper. With 1000 entities that all get filtered.
Definition at line 189 of file __init__.py.
| def homeassistant.scripts.benchmark.state_changed_event_helper | ( | hass | ) |
Run a million events through state changed event helper with 1000 entities.
Definition at line 154 of file __init__.py.
| def homeassistant.scripts.benchmark.state_changed_helper | ( | hass | ) |
Run a million events through state changed helper with 1000 entities.
Definition at line 120 of file __init__.py.
| def homeassistant.scripts.benchmark.valid_entity_id | ( | hass | ) |
Run valid entity ID a million times.
Definition at line 292 of file __init__.py.