Orchestrata Ultimate › Tests › Reference › session › test_session_performance
Tests reference — tests/session/test_session_performance.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_performance.py
source · 11 tests · 243 lines
Performance tests for session dual-storage.
Covers: infra.redis_state, session.checkpoint, session.fact_emitter, session.recovery, session.redis_store, session.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSessionOpenPerformance |
86 | Session open must be < 50ms p95. |
| method | TestSessionOpenPerformance.test_session_save_under_50ms |
89 | |
| method | TestSessionOpenPerformance.test_ten_sessions_p95_under_50ms |
97 | |
| class | TestFactEmitPerformance |
116 | Fact emission must be < 10ms p95. |
| method | TestFactEmitPerformance.test_single_emit_under_10ms |
119 | |
| method | TestFactEmitPerformance.test_batch_50_under_500ms |
127 | |
| class | TestFactQueryPerformance |
136 | Fact query must be < 20ms p95. |
| method | TestFactQueryPerformance.test_query_under_20ms |
139 | |
| class | TestCheckpointPerformance |
149 | Checkpoint creation must be < 50ms p95. |
| method | TestCheckpointPerformance.test_checkpoint_create_under_50ms |
152 | |
| class | TestRecoveryPerformance |
167 | Recovery must be < 500ms p95. |
| method | TestRecoveryPerformance.test_recovery_under_500ms |
170 | |
| class | TestContextPerformance |
182 | Context set/get must be < 20ms. |
| method | TestContextPerformance.test_context_set_under_20ms |
185 | |
| method | TestContextPerformance.test_context_get_under_20ms |
192 | |
| class | TestFullLifecycle |
201 | Full lifecycle: open→emit→checkpoint→close must be < 300ms. |
| method | TestFullLifecycle.test_full_lifecycle_under_300ms |
204 | |
| class | TestConcurrentSessions |
227 | Test concurrent session operations. |
| method | TestConcurrentSessions.test_ten_concurrent_sessions_stable |
230 |