import { Icon } from '../shared/Icon'; const SCENARIOS = [ { name: 'Concurrent Booking Updates', description: 'Simulate multiple status updates hitting the same trip simultaneously', expected: 'Only one succeeds (optimistic lock), others skip silently with modifiedCount: 0', metric: '< 50ms p99 for updateOne with status guard', }, { name: 'BullMQ Job Throughput', description: 'Schedule 1000 confirmation jobs within 1 minute', expected: 'All jobs processed within their delay windows, no job drops', metric: 'Queue depth returns to 0 within expected timeframe + 10% buffer', }, { name: 'Notification Burst', description: 'Trigger 500 booking notifications simultaneously', expected: 'All notifications delivered via FCM/APNS, fire-and-forget pattern prevents blocking', metric: '< 200ms for notification dispatch (excludes delivery)', }, { name: 'DAC Pub/Sub Latency', description: 'Publish/delete 100 DAC cards in rapid succession', expected: 'All Pub/Sub messages acknowledged within timeout', metric: '< 100ms per Pub/Sub publish', }, { name: 'Full Flow Path Execution', description: 'Execute all 11 flow paths sequentially with realistic delays', expected: 'All paths reach terminal state with correct booking_status', metric: 'No memory leaks, no connection pool exhaustion', }, ]; const KEY_METRICS = [ { metric: 'MongoDB updateOne (with guard)', target: '< 10ms p50, < 50ms p99', icon: 'storage' }, { metric: 'BullMQ job scheduling', target: '< 5ms per add()', icon: 'schedule' }, { metric: 'Pub/Sub publish', target: '< 100ms per message', icon: 'cloud_upload' }, { metric: 'API endpoint response', target: '< 200ms p99 (end-to-end)', icon: 'speed' }, ]; export function PerformanceTestingSection() { return (
{s.description}