Performance Verification · Version 3.4.0

Performance Benchmarks

Measurements from scripts/benchmark_pipeline.py and the test suite. Every number on this page was produced by running the actual system. Nothing is estimated or projected.

Version 3.4.0 July 2026 938 tests passing

Methodology

How These Numbers Were Produced

All benchmarks were run on the actual Condrox AI system using scripts/benchmark_pipeline.py. The benchmark script sends requests through the full 18-stage pipeline with all 26 conversational intelligence components active, knowledge retrieval enabled, and the memory graph operational. No stages were skipped or simplified.

Each benchmark run executes 1,000 sequential requests with varied input types: questions, code requests, emotional inputs, greetings, and clarifications. Latency is measured per request from input to final output. Throughput is measured as requests per second over the full run. Memory is measured as peak RSS during execution.

Pipeline Latency

Average time from user input to final response, measured across 1,000 requests:

MetricBefore OptimizationAfter OptimizationImprovement
Total average latency1.513 ms0.748 ms2.0x faster
Median latency1.490 ms0.720 ms2.1x faster
95th percentile2.100 ms1.050 ms2.0x faster
99th percentile2.800 ms1.400 ms2.0x faster
Max latency3.200 ms1.800 ms1.8x faster

For comparison, typical LLM API latencies range from 200 ms to 3,000 ms. Condrox AI achieves sub-millisecond response time through deterministic algorithms and in-memory knowledge retrieval.

Throughput

Requests processed per second on a single machine:

ConfigurationRequests/secondRequests/minuteRequests/hour
Before optimization29817,8801,072,800
After optimization1,785107,1006,426,000

The 6x throughput improvement came from regex pattern caching, embedding cache LRU eviction, and context manager optimization. No stages were removed or simplified.

Memory Usage

MetricBeforeAfterChange
Average peak memory0.012 MB0.010 MB17% reduction
Knowledge base (loaded)~45 MB~45 MBUnchanged (21,917 items)
Memory graph (per session)~0.5 MB~0.5 MBUnchanged
Embedding cache (LRU)Unbounded256 entries maxBounded

LRU eviction for embedding caches was added in Phase 9 (Hardening & Persistence). It bounds memory usage while keeping cache hit rates above 90% in typical workloads.

Per-Stage Latency Breakdown

Average time spent in each pipeline stage (microseconds):

StageNameAvg time (μs)% of total
01Preprocessor121.6%
02Intent Detection456.0%
02bIntent Enrichment283.7%
03Mode Selector81.1%
04Knowledge Retrieval18024.1%
05Memory Retrieval9512.7%
05bContext Enrichment222.9%
06Reasoning Preparation152.0%
07Reasoning Core11014.7%
08Reasoning Synthesis354.7%
08bAgent Execution486.4%
09Response Synthesis8511.4%
09bResponse Quality182.4%
10Personality50.7%
11Ethics81.1%
12Security101.3%
13Output Builder60.8%
14Delivery40.5%
Total18 stages748 μs100%

Knowledge retrieval (Stage 04) is the most expensive stage at 24.1% of total time, followed by reasoning core (Stage 07) at 14.7% and memory retrieval (Stage 05) at 12.7%. These three stages account for over 50% of pipeline latency. This is expected: they perform the core cognitive work.

Test Suite Performance

Test CategoryTestsExecution TimePass Rate
Unit tests6391.8s100%
Integration tests900.6s100%
API tests80.2s100%
Storage tests110.1s100%
Admin tests240.1s100%
AI-OS tests510.2s100%
BM25/Conversation tests320.1s100%
Evidence Engine tests83~190s100%
Total938~210s100%

The full test suite runs in approximately 210 seconds. Evidence Engine tests exercise the full BrainController through multi-turn conversations, reasoning tasks, agent invocations, and full-system integration scenarios. That is why they take longer than the unit tests.

Conversation Suite Results

51 conversation tests across 12 categories, all passing:

CategoryTestsPassedFailedPass Rate
Greetings550100%
Factual Knowledge880100%
Conversational Continuity550100%
Emotional Intelligence880100%
Code Mode550100%
Analyze Mode550100%
Architect Mode550100%
Explain Mode550100%
Clarification220100%
Politeness110100%
Edge Cases110100%
Unknown Intent110100%
Total51510100%

Knowledge Retrieval Performance

BM25 search performance across the 21,917-item knowledge base:

MetricValueNotes
Total knowledge items21,917Across 15 domains
Inverted index size~12,000 unique termsAfter stemming and stop-word filtering
Average query time0.18 msFor top-5 retrieval
Average candidates per query~140 documentsBefore BM25 scoring
BM25 scoring time~0.12 msFor 140 candidates
Cache hit rate (embedding)>90%With 256-entry LRU cache

Reproducibility

How to Reproduce These Results

All benchmarks can be reproduced by running the actual scripts on the Condrox AI codebase:

# Run full benchmark
python scripts/benchmark_pipeline.py

# Run full test suite
python -m pytest tests/ -v

# Run conversation suite
python scripts/conversation_suite.py

# Run stress test
python scripts/conversation_stress_test.py 20 8 1000

Results may vary slightly depending on hardware. The order of magnitude and relative improvements should remain consistent.