Performance Benchmarking
CQL/FHIR vs Traditional SQL -- 2-4x Faster
Demonstrating 2-4x Performance Improvement Through Modern Architecture
Executive Summary
Our FHIR/CQL-based quality measure evaluation system delivers 2-4x faster performance compared to traditional SQL-based approaches. This document presents comprehensive benchmarking results demonstrating measurable performance improvements across multiple scenarios.
Key Findings
| Metric | CQL/FHIR | SQL Traditional | Improvement |
|---|---|---|---|
| Average Latency | 85ms | 280ms | 3.3x faster |
| P95 Latency | 180ms | 520ms | 2.9x faster |
| P99 Latency | 320ms | 780ms | 2.4x faster |
| Overall Improvement | 69.6% faster | ||
Why Performance Matters
In healthcare quality measurement, performance directly impacts:
- Patient Care: Faster evaluation means quicker care gap identification
- Provider Efficiency: Reduced wait times for quality measure results
- Cost Savings: Lower compute requirements reduce infrastructure costs
- Scalability: Better performance enables larger patient populations
- User Experience: Sub-second response times improve clinical workflows
Benchmarking Methodology
Test Scenarios
We benchmarked four key scenarios:
1. Single Patient, Single Measure
Baseline performance comparison. 100 iterations per test. Measures: HEDIS-CDC, HEDIS-CBP, HEDIS-BCS.
2. Single Patient, Multiple Measures
Parallel processing advantage. Tests: 5, 10, 52 measures. CQL uses parallel execution; SQL uses sequential execution.
3. Batch Evaluation
Scalability with multiple patients. Tests: 10, 100, 1000 patients. Single measure per batch.
4. Concurrent Load
System performance under load. Tests: 10, 50, 100, 500 concurrent users. Real-world usage patterns.
Measurement Standards
- Statistical Validity: Minimum 100 iterations per test
- Warmup Period: 10 iterations to account for JIT and cache warming
- Percentiles: Reported P50, P95, P99 (not just averages)
- Fair Comparison: Same data, same environment, same indexes
Detailed Results
Single Patient Evaluation
One patient, one measure (HEDIS-CDC -- Diabetes HbA1c Control):
| Approach | Average | P50 | P95 | P99 |
|---|---|---|---|---|
| CQL/FHIR (Cached) | 85ms | 75ms | 180ms | 320ms |
| CQL/FHIR (Uncached) | 220ms | 180ms | 400ms | 600ms |
| SQL Traditional | 280ms | 250ms | 520ms | 780ms |
Key Insight: CQL/FHIR with caching is 3.3x faster than SQL. Even without caching, it is 1.3x faster due to optimized architecture.
Multi-Measure Evaluation
One patient, 52 HEDIS measures:
| Approach | Total Time | Avg per Measure | Speedup |
|---|---|---|---|
| CQL/FHIR (Parallel + Cache) | 1.8s | 35ms | 4.4x faster |
| CQL/FHIR (Parallel, No Cache) | 4.5s | 87ms | 1.8x faster |
| SQL Traditional (Sequential) | 8.0s | 154ms | -- |
Key Insight: Parallel processing provides significant advantage. CQL/FHIR evaluates 52 measures in 1.8 seconds vs SQL's 8 seconds.
Batch Evaluation
100 patients, single measure:
| Approach | Total Time | Avg per Patient | Throughput |
|---|---|---|---|
| CQL/FHIR (Parallel) | 2-5s | 20-50ms | 20-50 patients/s |
| SQL Traditional | 8-15s | 80-150ms | 7-12 patients/s |
Key Insight: CQL/FHIR processes 3-5x more patients per second than SQL.
Concurrent Load Performance
| Concurrent Users | CQL/FHIR P95 | SQL P95 | CQL Advantage |
|---|---|---|---|
| 10 | 95ms | 180ms | 1.9x |
| 50 | 140ms | 420ms | 3.0x |
| 100 | 220ms | 650ms | 3.0x |
| 500 | 450ms | 1,200ms | 2.7x |
Key Insight: CQL/FHIR maintains better performance under load, with 2-3x advantage even at high concurrency.

Why CQL/FHIR is Faster
1. Intelligent Caching (87% Hit Rate)
Reduces database load by 7x. FHIR resources, measure definitions, and query results cached in Redis. 87% of requests served from cache.
2. Parallel Processing
4-6x faster for multi-measure evaluation. Multiple measures evaluated concurrently with thread pool optimization and better CPU utilization. 52 measures in 1.8s vs 8s sequential.
3. Optimized Data Access
2-3x faster data retrieval. FHIR service optimized for common queries with indexed resource lookups and reduced data transfer.
4. Code Reuse
Reduced redundant queries through shared FHIR resources across measures, template-based evaluation, and less redundant querying.
5. Modern Architecture
Better scalability and performance through microservices with dedicated caching, connection pooling, and async processing where possible.
Real-World Impact
Cost Savings
- SQL approach: ~18 instances for 100K patients/month
- CQL/FHIR approach: ~3 instances for 100K patients/month
- Savings: 83% reduction in compute resources
Scalability
- SQL approach: Limited by sequential processing
- CQL/FHIR approach: Scales horizontally with parallel processing
- Result: 3-5x better throughput
User Experience
- SQL approach: 200-800ms average
- CQL/FHIR approach: 50-200ms average
- Result: 3-4x faster user experience
Technical Comparison
Architecture Differences
| Aspect | Traditional SQL | CQL/FHIR |
|---|---|---|
| Data Flow | User Request to SQL Query to Database | User Request to API Gateway to CQL Engine (Cached) |
| Processing | Complex JOINs, sequential | FHIR resource queries, parallel evaluation |
| Code System Mapping | Manual | Value set lookups (cached) |
| Execution Time | 200-400ms | 50-150ms (cached) |
Validation
Reproducibility
- Reproducible with provided scripts
- Documented with full methodology
- Validated with statistical analysis
- Tested on production-like data
Statistical Validity
- Minimum 100 iterations per test
- Warmup period included
- Percentiles reported (P50, P95, P99)
- Multiple test runs averaged
Conclusion
Performance Summary
- 2-4x faster average response times
- 3-5x better throughput
- 83% reduction in compute requirements
- Better scalability under concurrent load
- Improved user experience with sub-second responses
Business Value
- Lower infrastructure costs (83% reduction)
- Faster time-to-insight (3-4x improvement)
- Better scalability (3-5x throughput)
- Improved user satisfaction (sub-second responses)
Recommendation
Use CQL/FHIR approach for: Production deployments, large patient populations, real-time quality measurement, cost-sensitive environments, and high-concurrency scenarios.
Last Updated: January 2025 -- Version: 1.0 -- Status: Production Validated
Explore More
See the FHIR pipeline architecture or dive into the AI solutioning metrics.