Orchestrata Ultimate › Tests › Reference › session › test_session_benchmarks

Tests reference — tests/session/test_session_benchmarks.py

Module of tests/session, split out because the directory page would be too large.

Prose pending.

tests/session/test_session_benchmarks.py

source · 7 tests · 243 lines

Additional benchmark tests for orchestrata_ultimate.session.

Covers: infra.redis_state, session.fact_emitter, session.redis_store, session.types

Kind Name Line Description
class TestSessionOpenBenchmarks 90
method TestSessionOpenBenchmarks.test_open_100_sessions_sequential_under_5s 91 Open 100 sessions sequentially in < 5s (50ms avg).
class TestFactEmissionBenchmarks 114
method TestFactEmissionBenchmarks.test_emit_100_facts_sequential_under_1s 115 Emit 100 facts sequentially in < 1s (10ms avg).
method TestFactEmissionBenchmarks.test_emit_10_facts_concurrent_under_200ms 130 Emit 10 facts concurrently in < 200ms (thread pool overhead included).
class TestQueryBenchmarks 156
method TestQueryBenchmarks.test_query_100_facts_under_100ms 157 Query 100 facts in < 100ms.
method TestQueryBenchmarks.test_query_with_filter_under_50ms 175 Complex query with fact_type filter in < 150ms.
class TestSessionCloseBenchmarks 215
method TestSessionCloseBenchmarks.test_close_session_with_100_facts_under_100ms 216 Close session with 100 facts in < 100ms.
method TestSessionCloseBenchmarks.test_close_10_sessions_concurrent_under_500ms 229 Close 10 sessions concurrently in < 500ms (thread pool overhead included).