Orchestrata Ultimate › Tests › Reference › session › test_session_strict_targets
Tests reference — tests/session/test_session_strict_targets.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_strict_targets.py
source · 15 tests · 539 lines
Strict performance target tests for spec 006.
Covers: core.paths, infra.prolog_bridge, infra.redis_state, session.fact_emitter, session.prolog_facts, session.redis_store, session.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSessionQueryUnder10ms |
80 | Session get_session() must complete in < 10ms median (warm cache). |
| method | TestSessionQueryUnder10ms.test_session_get_under_10ms |
83 | get_session() on a simple session completes in < 10ms median. |
| method | TestSessionQueryUnder10ms.test_session_get_with_50_facts_under_10ms |
115 | get_session() with 50 facts already stored still < 10ms. |
| method | TestSessionQueryUnder10ms.test_session_get_nonexistent_under_10ms |
151 | get_session() on nonexistent session returns None in < 10ms. |
| class | TestSessionDeleteUnder50ms |
178 | Session delete_session() must complete in < 50ms median. |
| method | TestSessionDeleteUnder50ms.test_session_delete_under_50ms |
181 | delete_session() on a simple session completes in < 50ms median. |
| method | TestSessionDeleteUnder50ms.test_session_delete_with_100_facts_under_50ms |
198 | delete_session() with 100 facts still completes in < 50ms median. |
| method | TestSessionDeleteUnder50ms.test_session_cleanup_under_50ms |
217 | cleanup_session() (full delete) completes in < 50ms median. |
| class | TestFactQueryUnder10ms |
244 | Fact queries must complete in < 10ms median. |
| method | TestFactQueryUnder10ms.test_fact_query_50_facts_under_10ms |
247 | get_facts() on 50 facts completes in < 10ms median. |
| method | TestFactQueryUnder10ms.test_fact_query_filtered_under_10ms |
275 | Filtered get_facts() completes in < 10ms median. |
| method | TestFactQueryUnder10ms.test_fact_count_under_10ms |
328 | get_fact_count() completes in < 10ms median. |
| class | TestFactEmitUnder10ms |
362 | Single fact emission must complete in < 10ms median. |
| method | TestFactEmitUnder10ms.test_fact_emit_single_under_10ms |
365 | Single emit() completes in < 10ms median. |
| method | TestFactEmitUnder10ms.test_fact_emit_typed_under_10ms |
390 | emit_typed() completes in < 10ms median. |
| method | TestFactEmitUnder10ms.test_batch_emit_10_facts_under_10ms |
414 | batch_emit() of 10 facts completes in < 10ms median. |
| class | TestPrologTimingIncluded |
444 | If Prolog interface exists, verify timing includes Prolog queries. |
| method | TestPrologTimingIncluded.test_prolog_flush_timing_measured |
447 | flush_to_prolog() returns 0 when no Prolog engine is configured. |
| method | TestPrologTimingIncluded.test_prolog_bridge_timing_with_real_engine |
469 | PrologFactBridge timing with real Prolog engine. |
| method | TestPrologTimingIncluded.test_emitter_latency_tracking |
520 | FactEmitter tracks cumulative latency internally. |