Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance Report - 2025-12-18 0x08-h

Branch: 0x08-h-performance-monitoring Dataset: 1.3M orders (30% cancels, high-balance mode) Changes: Service-oriented refactoring (IngestionService, UBSCoreService, MatchingService, SettlementService)

Summary

MetricSingle-ThreadMulti-Thread
Orders1,300,0001,300,000
Trades667,567667,567
Exec Time14.18s20.17s
Throughput91,710/s64,450/s
P50 Latency2.5 µs113 ms

Multi-Thread Breakdown

ComponentTime%Latency/op
Matching Engine19.23s76.6%19.23 µs
Persistence5.35s21.3%4.12 µs
Settlement0.51s2.0%0.76 µs

Key Changes

  • Extracted 4 service structs from spawn functions
  • Reduced pipeline_mt.rs from 720 to ~250 lines
  • Added pipeline_services.rs (~640 lines)
  • All tests pass with exact trade count match

Verdict

Correctness Verified: 667,567 trades, 0 balance differences