Skip to content

Latest commit

 

History

History
101 lines (95 loc) · 2.18 KB

load_test.md

File metadata and controls

101 lines (95 loc) · 2.18 KB

Load test (Phase 14.3)

Generated by scripts/load_test.py: the real GraphRunner and the real local Postgres, with the canned LLM and fake vision plus emulated latency (LLM 800 ms per call, vision 1500 ms). This measures orchestration, persistence and DB contention, not OpenAI or GPU latency (see doc/eval_runs/ for the live run).

Metric Value
Cases / concurrency 50 / 10
Final statuses {'PENDING_REVIEW': 50}
Throughput 94.1 cases/min
End-to-end p50 / p95 6350 / 6523 ms
Emulated critical path 5500 ms
Target (proposal): 0 failures, p95 <= 1.5x critical path (8250 ms) MET
Est. cost per case (synthetic token counts) $0.001131

Per node (time from previous persist to this node's persist, ms):

Node p50 p95
precheck_image 225 340
input_rail 108 132
extract_note 950 977
call_vision 1800 1834
build_context 93 116
route_context 128 150
run_specialists 952 988
draft 939 976
audit 934 951
output_rail 100 112
persist_pending 97 107

Raw result:

{
  "cases": 50,
  "concurrency": 10,
  "emulated_llm_ms": 800,
  "emulated_vision_ms": 1500,
  "statuses": {
    "PENDING_REVIEW": 50
  },
  "throughput_cases_per_min": 94.1,
  "e2e_ms": {
    "p50": 6350,
    "p95": 6523
  },
  "critical_path_ms": 5500,
  "target_p95_ms": 8250,
  "target_met": true,
  "per_node_ms": {
    "precheck_image": {
      "p50": 225,
      "p95": 340
    },
    "input_rail": {
      "p50": 108,
      "p95": 132
    },
    "extract_note": {
      "p50": 950,
      "p95": 977
    },
    "call_vision": {
      "p50": 1800,
      "p95": 1834
    },
    "build_context": {
      "p50": 93,
      "p95": 116
    },
    "route_context": {
      "p50": 128,
      "p95": 150
    },
    "run_specialists": {
      "p50": 952,
      "p95": 988
    },
    "draft": {
      "p50": 939,
      "p95": 976
    },
    "audit": {
      "p50": 934,
      "p95": 951
    },
    "output_rail": {
      "p50": 100,
      "p95": 112
    },
    "persist_pending": {
      "p50": 97,
      "p95": 107
    }
  },
  "est_cost_per_case_usd_synthetic_tokens": 0.001131
}