Skip to main content

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

MetricCQL/FHIRSQL TraditionalImprovement
Average Latency85ms280ms3.3x faster
P95 Latency180ms520ms2.9x faster
P99 Latency320ms780ms2.4x faster
Overall Improvement69.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):

ApproachAverageP50P95P99
CQL/FHIR (Cached)85ms75ms180ms320ms
CQL/FHIR (Uncached)220ms180ms400ms600ms
SQL Traditional280ms250ms520ms780ms

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:

ApproachTotal TimeAvg per MeasureSpeedup
CQL/FHIR (Parallel + Cache)1.8s35ms4.4x faster
CQL/FHIR (Parallel, No Cache)4.5s87ms1.8x faster
SQL Traditional (Sequential)8.0s154ms--

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:

ApproachTotal TimeAvg per PatientThroughput
CQL/FHIR (Parallel)2-5s20-50ms20-50 patients/s
SQL Traditional8-15s80-150ms7-12 patients/s

Key Insight: CQL/FHIR processes 3-5x more patients per second than SQL.

Concurrent Load Performance

Concurrent UsersCQL/FHIR P95SQL P95CQL Advantage
1095ms180ms1.9x
50140ms420ms3.0x
100220ms650ms3.0x
500450ms1,200ms2.7x

Key Insight: CQL/FHIR maintains better performance under load, with 2-3x advantage even at high concurrency.

HDIM results table showing 150 HEDIS evaluations with severity, trend, and compliance rate columns
150 HEDIS evaluations processed and displayed with severity classification, compliance trending, and one-click outreach actions.

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

AspectTraditional SQLCQL/FHIR
Data FlowUser Request to SQL Query to DatabaseUser Request to API Gateway to CQL Engine (Cached)
ProcessingComplex JOINs, sequentialFHIR resource queries, parallel evaluation
Code System MappingManualValue set lookups (cached)
Execution Time200-400ms50-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.