diff --git a/doc/benchmarks/2026-11-03-native-event-ingestion.json b/doc/benchmarks/2026-11-03-native-event-ingestion.json new file mode 100644 index 00000000000..6c217e511b7 --- /dev/null +++ b/doc/benchmarks/2026-11-03-native-event-ingestion.json @@ -0,0 +1,2493 @@ +{ + "status": "cursor_service_qualified_application_and_batching_pending", + "scope": "Real append service / real PostgreSQL; closed-loop service cost, not assembled application, browser, or hosted acceptance", + "testedRevisions": { + "B0": "83b5f7d486e70e484acd9a41bc957054f4e10175", + "B1": "7922802f069ab3b39e9f79368c46615ba2201ba9", + "B2": "6afeba4edafd47120e8117f736641d5424b27d4a", + "browserHarness": "f5c560d80d9d4ee089297d3b3f300c052db17c9e" + }, + "workload": { + "histories": [ + 1000, + 10000, + 100000 + ], + "pairs": 5, + "events": 32, + "groups": 16, + "scenarios": [ + "ordered", + "replay", + "late-gap", + "warm-suffix" + ], + "payloadTextBytes": 128, + "warmSourceOffset": 1000, + "seed": "native-event-ingestion-v1", + "retainedHistory": "vacuum-analyzed", + "quick": false + }, + "workloadSha256": "7c8abf644080c5e75f07ed7c1925e8d40a0c573a7160cbf0b5c99c06135b321a", + "units": { + "ordinaryTimedSample": "512 append attempts:16 consecutive groups of32; replay attempts create0new events", + "lateGapTimedSample": "one gap-closing append, structural-only latency gate", + "ownerCpu": "benchmark process only", + "databaseCpu": "PostgreSQL backend process,10msclockresolution", + "latencyTails": "No per-event service p99 is inferred from five sample durations" + }, + "environment": { + "node": "v26.4.0", + "platform": "linux", + "architecture": "x64", + "cpus": 16, + "loadBefore": [ + 1.11, + 1.79, + 1.17 + ] + }, + "database": { + "postgres_version": "PostgreSQL 18.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit", + "backend_pid": 38772, + "shared_buffers": "128MB", + "work_mem": "4MB", + "jit": "on" + }, + "measurement": { + "warmups": 2, + "pairedOrder": "alternating", + "cache": "warm; seed and projection preparation excluded", + "databaseCpuResolutionMillis": 10, + "databaseCpuSource": "/proc/PID/stat utime+stime clock ticks" + }, + "baselineRepeatability": { + "limits": { + "maximumPairedRelativeDifference": 0.2, + "maximumMedianArmDrift": 0.1 + }, + "eligible": true, + "eligibilityFailures": [], + "cases": [ + { + "history": 1000, + "scenario": "ordered", + "maximumPairedRelativeDifference": 0.14603056269710105, + "medianArmDrift": 0.006101048337012426, + "passed": true + }, + { + "history": 1000, + "scenario": "replay", + "maximumPairedRelativeDifference": 0.05696648936960963, + "medianArmDrift": 0.005553482379278201, + "passed": true + }, + { + "history": 1000, + "scenario": "warm-suffix", + "maximumPairedRelativeDifference": 0.024289929467203868, + "medianArmDrift": 0.01791244170843659, + "passed": true + }, + { + "history": 10000, + "scenario": "ordered", + "maximumPairedRelativeDifference": 0.037649083635166815, + "medianArmDrift": 0.01203321513857753, + "passed": true + }, + { + "history": 10000, + "scenario": "replay", + "maximumPairedRelativeDifference": 0.026505442470828453, + "medianArmDrift": 0.00698463077481016, + "passed": true + }, + { + "history": 10000, + "scenario": "warm-suffix", + "maximumPairedRelativeDifference": 0.023755380399753674, + "medianArmDrift": 0.005898205718946344, + "passed": true + }, + { + "history": 100000, + "scenario": "ordered", + "maximumPairedRelativeDifference": 0.01261232067789408, + "medianArmDrift": 0.0037280200460502607, + "passed": true + }, + { + "history": 100000, + "scenario": "replay", + "maximumPairedRelativeDifference": 0.0182885616009952, + "medianArmDrift": 0.011112756224789489, + "passed": true + }, + { + "history": 100000, + "scenario": "warm-suffix", + "maximumPairedRelativeDifference": 0.012072360725630761, + "medianArmDrift": 0.00042263730370318685, + "passed": true + } + ], + "passed": true, + "excluded": "Late-gap single-operation latency is structural-only; its complete paired evidence is still required" + }, + "serviceCursorCases": [ + { + "history": 1000, + "scenario": "ordered", + "latencyGate": "nonregression", + "medianLatencyChangePercent": -5.742408937854282, + "gate": { + "history": 1000, + "scenario": "ordered", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 0, + "requiredPairedWins": 4, + "latencyGate": "nonregression", + "improvementRelative": 0.05742408937854287, + "noiseEnvelopeRelative": 0.14603056269710105, + "improvedBeyondNoise": false, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 3821.8926999999967, + "minMsPerSample": 3767.7410439999985, + "maxMsPerSample": 4044.331014999996, + "medianAttemptsPerSecond": 133.96503779397062, + "medianOwnerCpuMicrosPerAttempt": 1924.09765625, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 1032 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 3767.7410439999985, + "eventsPerSecond": 135.89044311188604, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 995111, + "databaseCpuMillis": 1070, + "heapDeltaBytes": 33654496, + "rssBytes": 487653376, + "eventLoopUtilization": 0.22143373396129723, + "eventLoopDelayMaxMs": 11.968511, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 3866.8542080000007, + "eventsPerSecond": 132.407371072005, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 985138, + "databaseCpuMillis": 1170, + "heapDeltaBytes": 33531656, + "rssBytes": 608763904, + "eventLoopUtilization": 0.21666069656252768, + "eventLoopDelayMaxMs": 10.944511, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 3048 + }, + { + "elapsedMs": 3786.3843769999985, + "eventsPerSecond": 135.22134813097455, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 966165, + "databaseCpuMillis": 1020, + "heapDeltaBytes": 27080288, + "rssBytes": 645201920, + "eventLoopUtilization": 0.21866037997631008, + "eventLoopDelayMaxMs": 11.395071, + "retainedHistoryBefore": 3048, + "retainedHistoryAfter": 3560 + }, + { + "elapsedMs": 3821.8926999999967, + "eventsPerSecond": 133.96503779397062, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 958143, + "databaseCpuMillis": 1140, + "heapDeltaBytes": 45397432, + "rssBytes": 754253824, + "eventLoopUtilization": 0.2150223122515176, + "eventLoopDelayMaxMs": 10.952703, + "retainedHistoryBefore": 3560, + "retainedHistoryAfter": 4072 + }, + { + "elapsedMs": 4044.331014999996, + "eventsPerSecond": 126.5969570989729, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 985142, + "databaseCpuMillis": 1360, + "heapDeltaBytes": 23276976, + "rssBytes": 790429696, + "eventLoopUtilization": 0.20692569753314943, + "eventLoopDelayMaxMs": 11.583487, + "retainedHistoryBefore": 4072, + "retainedHistoryAfter": 4584 + } + ], + "medianBackendCpuMicrosPerAttempt": 2226.5625 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3602.4239919999964, + "minMsPerSample": 3518.2594119999994, + "maxMsPerSample": 3647.625899999999, + "medianAttemptsPerSecond": 142.12652401189106, + "medianOwnerCpuMicrosPerAttempt": 1870.296875, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3518.2594119999994, + "eventsPerSecond": 145.52650616201922, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 974415, + "databaseCpuMillis": 870, + "heapDeltaBytes": 31488160, + "rssBytes": 528941056, + "eventLoopUtilization": 0.23084529326625897, + "eventLoopDelayMaxMs": 11.165695, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 3630.801406999999, + "eventsPerSecond": 141.01569945767076, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 988618, + "databaseCpuMillis": 890, + "heapDeltaBytes": 31761200, + "rssBytes": 569049088, + "eventLoopUtilization": 0.22863431900404702, + "eventLoopDelayMaxMs": 10.903551, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 3048 + }, + { + "elapsedMs": 3647.625899999999, + "eventsPerSecond": 140.3652715592353, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 957592, + "databaseCpuMillis": 920, + "heapDeltaBytes": 25408472, + "rssBytes": 681902080, + "eventLoopUtilization": 0.2255673862462215, + "eventLoopDelayMaxMs": 10.985471, + "retainedHistoryBefore": 3048, + "retainedHistoryAfter": 3560 + }, + { + "elapsedMs": 3602.4239919999964, + "eventsPerSecond": 142.12652401189106, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 952880, + "databaseCpuMillis": 900, + "heapDeltaBytes": 47051672, + "rssBytes": 715849728, + "eventLoopUtilization": 0.22712651602950687, + "eventLoopDelayMaxMs": 12.484607, + "retainedHistoryBefore": 3560, + "retainedHistoryAfter": 4072 + }, + { + "elapsedMs": 3537.9286530000027, + "eventsPerSecond": 144.71744634133515, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 946701, + "databaseCpuMillis": 880, + "heapDeltaBytes": 23493352, + "rssBytes": 828178432, + "eventLoopUtilization": 0.2317137772533349, + "eventLoopDelayMaxMs": 12.492799, + "retainedHistoryBefore": 4072, + "retainedHistoryAfter": 4584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1738.28125 + } + }, + { + "history": 1000, + "scenario": "replay", + "latencyGate": "nonregression", + "medianLatencyChangePercent": -2.2670646582352183, + "gate": { + "history": 1000, + "scenario": "replay", + "pairedCandidateWins": 4, + "noiseExceedingPairedWins": 0, + "requiredPairedWins": 4, + "latencyGate": "nonregression", + "improvementRelative": 0.02267064658235218, + "noiseEnvelopeRelative": 0.05696648936960963, + "improvedBeyondNoise": false, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 3115.0636460000096, + "minMsPerSample": 3032.75809399999, + "maxMsPerSample": 3183.06670499999, + "medianAttemptsPerSecond": 164.36261283375345, + "medianOwnerCpuMicrosPerAttempt": 1570.958984375, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 1016 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 3115.0636460000096, + "eventsPerSecond": 164.36261283375345, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 845483, + "databaseCpuMillis": 740, + "heapDeltaBytes": 36624952, + "rssBytes": 945020928, + "eventLoopUtilization": 0.22342104438195334, + "eventLoopDelayMaxMs": 11.689983, + "retainedHistoryBefore": 1512, + "retainedHistoryAfter": 1768 + }, + { + "elapsedMs": 3152.0550479999947, + "eventsPerSecond": 162.43371140515717, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 780933, + "databaseCpuMillis": 760, + "heapDeltaBytes": 33055456, + "rssBytes": 514990080, + "eventLoopUtilization": 0.21897864902613573, + "eventLoopDelayMaxMs": 11.132927, + "retainedHistoryBefore": 1768, + "retainedHistoryAfter": 2024 + }, + { + "elapsedMs": 3183.06670499999, + "eventsPerSecond": 160.85116884159095, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 804331, + "databaseCpuMillis": 780, + "heapDeltaBytes": 11472256, + "rssBytes": 538189824, + "eventLoopUtilization": 0.219418377272403, + "eventLoopDelayMaxMs": 11.223039, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2280 + }, + { + "elapsedMs": 3071.708136000001, + "eventsPerSecond": 166.6825028066403, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 807136, + "databaseCpuMillis": 790, + "heapDeltaBytes": 32484800, + "rssBytes": 623779840, + "eventLoopUtilization": 0.22542539073320117, + "eventLoopDelayMaxMs": 11.206655, + "retainedHistoryBefore": 2280, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 3032.75809399999, + "eventsPerSecond": 168.82322431615665, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 776534, + "databaseCpuMillis": 750, + "heapDeltaBytes": 32166800, + "rssBytes": 650649600, + "eventLoopUtilization": 0.22416983710939756, + "eventLoopDelayMaxMs": 10.977279, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 2792 + } + ], + "medianBackendCpuMicrosPerAttempt": 1484.375 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3044.44313900001, + "minMsPerSample": 3014.9782689999993, + "maxMsPerSample": 3069.673167000001, + "medianAttemptsPerSecond": 168.1752545945639, + "medianOwnerCpuMicrosPerAttempt": 1565.7734375, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3065.6659729999956, + "eventsPerSecond": 167.01101963139436, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 804031, + "databaseCpuMillis": 670, + "heapDeltaBytes": 13012528, + "rssBytes": 852631552, + "eventLoopUtilization": 0.2269970134163534, + "eventLoopDelayMaxMs": 10.960895, + "retainedHistoryBefore": 1512, + "retainedHistoryAfter": 1768 + }, + { + "elapsedMs": 3044.44313900001, + "eventsPerSecond": 168.1752545945639, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 801191, + "databaseCpuMillis": 670, + "heapDeltaBytes": 34388648, + "rssBytes": 514990080, + "eventLoopUtilization": 0.2259530730103639, + "eventLoopDelayMaxMs": 11.395071, + "retainedHistoryBefore": 1768, + "retainedHistoryAfter": 2024 + }, + { + "elapsedMs": 3014.9782689999993, + "eventsPerSecond": 169.81880276364942, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 786991, + "databaseCpuMillis": 670, + "heapDeltaBytes": 34189720, + "rssBytes": 565452800, + "eventLoopUtilization": 0.2288037919790053, + "eventLoopDelayMaxMs": 11.763711, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2280 + }, + { + "elapsedMs": 3016.7872960000095, + "eventsPerSecond": 169.71697032762842, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 822754, + "databaseCpuMillis": 670, + "heapDeltaBytes": 12531080, + "rssBytes": 597303296, + "eventLoopUtilization": 0.2311928854994864, + "eventLoopDelayMaxMs": 10.919935, + "retainedHistoryBefore": 2280, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 3069.673167000001, + "eventsPerSecond": 166.79300112603806, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 801676, + "databaseCpuMillis": 690, + "heapDeltaBytes": 12085552, + "rssBytes": 680927232, + "eventLoopUtilization": 0.22559130420640797, + "eventLoopDelayMaxMs": 12.140543, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 2792 + } + ], + "medianBackendCpuMicrosPerAttempt": 1308.59375 + } + }, + { + "history": 1000, + "scenario": "late-gap", + "latencyGate": "structural-only", + "medianLatencyChangePercent": 15.149505415837417, + "gate": { + "history": 1000, + "scenario": "late-gap", + "pairedCandidateWins": 0, + "noiseExceedingPairedWins": 0, + "requiredPairedWins": 4, + "latencyGate": "structural-only", + "improvementRelative": -0.1514950541583741, + "noiseEnvelopeRelative": 0.25940723696471085, + "improvedBeyondNoise": false, + "noRegressionBeyondNoise": true, + "acceptancePassed": null + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 7.502872000011848, + "minMsPerSample": 4.2591580000007525, + "maxMsPerSample": 8.29047000000719, + "medianAttemptsPerSecond": 133.28229509958598, + "medianOwnerCpuMicrosPerAttempt": 2190, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 1001 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 5.720398999997997, + "eventsPerSecond": 174.8129807029807, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 1939, + "databaseCpuMillis": 0, + "heapDeltaBytes": 422592, + "rssBytes": 686039040, + "eventLoopUtilization": 0.3181326164076, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 7.502872000011848, + "eventsPerSecond": 133.28229509958598, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 39558, + "databaseCpuMillis": 0, + "heapDeltaBytes": 431616, + "rssBytes": 689053696, + "eventLoopUtilization": 1, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 8.29047000000719, + "eventsPerSecond": 120.62042320871225, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2190, + "databaseCpuMillis": 0, + "heapDeltaBytes": 463896, + "rssBytes": 687636480, + "eventLoopUtilization": 0.24778285193115038, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 8.271701999998186, + "eventsPerSecond": 120.89410377697592, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2038, + "databaseCpuMillis": 0, + "heapDeltaBytes": 456056, + "rssBytes": 687636480, + "eventLoopUtilization": 0.23109295991253467, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 4.2591580000007525, + "eventsPerSecond": 234.78819052963598, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 3574, + "databaseCpuMillis": 0, + "heapDeltaBytes": 450632, + "rssBytes": 687636480, + "eventLoopUtilization": 0.32782615804061754, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + } + ] + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 8.639519999996992, + "minMsPerSample": 8.054645999989589, + "maxMsPerSample": 9.896842999994988, + "medianAttemptsPerSecond": 115.74717113917767, + "medianOwnerCpuMicrosPerAttempt": 3119, + "sqlCallsPerAttempt": 7, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 8.502074999996694, + "eventsPerSecond": 117.61834610967192, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 3242, + "databaseCpuMillis": 0, + "heapDeltaBytes": 470176, + "rssBytes": 686170112, + "eventLoopUtilization": 0.2530225940022785, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 8.054645999989589, + "eventsPerSecond": 124.15194907402419, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 39998, + "databaseCpuMillis": 10, + "heapDeltaBytes": 461920, + "rssBytes": 688922624, + "eventLoopUtilization": 1, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 8.639519999996992, + "eventsPerSecond": 115.74717113917767, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2552, + "databaseCpuMillis": 0, + "heapDeltaBytes": 487152, + "rssBytes": 687636480, + "eventLoopUtilization": 0.23771921916275002, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 9.896842999994988, + "eventsPerSecond": 101.04232228403608, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 3119, + "databaseCpuMillis": 0, + "heapDeltaBytes": 498416, + "rssBytes": 687636480, + "eventLoopUtilization": 0.22593697141773111, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + }, + { + "elapsedMs": 9.082460000005085, + "eventsPerSecond": 110.10232910460823, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2276, + "databaseCpuMillis": 0, + "heapDeltaBytes": 473640, + "rssBytes": 687636480, + "eventLoopUtilization": 0.23138398953178907, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 1000, + "retainedHistoryAfter": 1001 + } + ] + } + }, + { + "history": 1000, + "scenario": "warm-suffix", + "latencyGate": "nonregression", + "medianLatencyChangePercent": -13.083401235515325, + "gate": { + "history": 1000, + "scenario": "warm-suffix", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "nonregression", + "improvementRelative": 0.1308340123551533, + "noiseEnvelopeRelative": 0.024289929467203868, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 4172.937833000004, + "minMsPerSample": 4086.5682390000147, + "maxMsPerSample": 4292.283408999996, + "medianAttemptsPerSecond": 122.69533371694483, + "medianOwnerCpuMicrosPerAttempt": 2151.814453125, + "sqlCallsPerAttempt": 6, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 1032, + 0 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 4136.721946999998, + "eventsPerSecond": 123.7694983031936, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1110598, + "databaseCpuMillis": 1110, + "heapDeltaBytes": 21079120, + "rssBytes": 558157824, + "eventLoopUtilization": 0.22682177978000112, + "eventLoopDelayMaxMs": 12.500991, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 4086.5682390000147, + "eventsPerSecond": 125.2884988224953, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1039109, + "databaseCpuMillis": 1130, + "heapDeltaBytes": 43998736, + "rssBytes": 570871808, + "eventLoopUtilization": 0.22203093336559124, + "eventLoopDelayMaxMs": 11.091967, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 3048 + }, + { + "elapsedMs": 4172.937833000004, + "eventsPerSecond": 122.69533371694483, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1359984, + "databaseCpuMillis": 1170, + "heapDeltaBytes": -69392880, + "rssBytes": 431128576, + "eventLoopUtilization": 0.2304635378420051, + "eventLoopDelayMaxMs": 11.739135, + "retainedHistoryBefore": 3048, + "retainedHistoryAfter": 3560 + }, + { + "elapsedMs": 4292.283408999996, + "eventsPerSecond": 119.28382895836887, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1101729, + "databaseCpuMillis": 1240, + "heapDeltaBytes": 44863936, + "rssBytes": 524320768, + "eventLoopUtilization": 0.2176333681456509, + "eventLoopDelayMaxMs": 12.943359, + "retainedHistoryBefore": 3560, + "retainedHistoryAfter": 4072 + }, + { + "elapsedMs": 4232.580820999981, + "eventsPerSecond": 120.96638473144048, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1091120, + "databaseCpuMillis": 1190, + "heapDeltaBytes": 21804600, + "rssBytes": 560627712, + "eventLoopUtilization": 0.22111083357488312, + "eventLoopDelayMaxMs": 10.960895, + "retainedHistoryBefore": 4072, + "retainedHistoryAfter": 4584 + } + ], + "medianBackendCpuMicrosPerAttempt": 2285.15625 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3626.9756329999946, + "minMsPerSample": 3597.0772639999923, + "maxMsPerSample": 3650.707789999986, + "medianAttemptsPerSecond": 141.16444437662446, + "medianOwnerCpuMicrosPerAttempt": 1896.859375, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3626.9756329999946, + "eventsPerSecond": 141.16444437662446, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1241382, + "databaseCpuMillis": 930, + "heapDeltaBytes": -156752456, + "rssBytes": 570740736, + "eventLoopUtilization": 0.24056221338801628, + "eventLoopDelayMaxMs": 12.861439, + "retainedHistoryBefore": 2024, + "retainedHistoryAfter": 2536 + }, + { + "elapsedMs": 3629.3362690000067, + "eventsPerSecond": 141.07262652216892, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 971192, + "databaseCpuMillis": 920, + "heapDeltaBytes": 24271432, + "rssBytes": 570871808, + "eventLoopUtilization": 0.2252976707736987, + "eventLoopDelayMaxMs": 12.386303, + "retainedHistoryBefore": 2536, + "retainedHistoryAfter": 3048 + }, + { + "elapsedMs": 3650.707789999986, + "eventsPerSecond": 140.2467766394423, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 960617, + "databaseCpuMillis": 910, + "heapDeltaBytes": 22094632, + "rssBytes": 452493312, + "eventLoopUtilization": 0.22384401334146733, + "eventLoopDelayMaxMs": 10.797055, + "retainedHistoryBefore": 3048, + "retainedHistoryAfter": 3560 + }, + { + "elapsedMs": 3601.671973999997, + "eventsPerSecond": 142.15619959176226, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 941447, + "databaseCpuMillis": 910, + "heapDeltaBytes": 22664456, + "rssBytes": 488800256, + "eventLoopUtilization": 0.2262050273819268, + "eventLoopDelayMaxMs": 10.952703, + "retainedHistoryBefore": 3560, + "retainedHistoryAfter": 4072 + }, + { + "elapsedMs": 3597.0772639999923, + "eventsPerSecond": 142.33778215557427, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1231593, + "databaseCpuMillis": 890, + "heapDeltaBytes": -173184872, + "rssBytes": 579657728, + "eventLoopUtilization": 0.24129014091408618, + "eventLoopDelayMaxMs": 12.115967, + "retainedHistoryBefore": 4072, + "retainedHistoryAfter": 4584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1777.34375 + } + }, + { + "history": 10000, + "scenario": "ordered", + "latencyGate": "improvement", + "medianLatencyChangePercent": -12.122362368994832, + "gate": { + "history": 10000, + "scenario": "ordered", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.12122362368994838, + "noiseEnvelopeRelative": 0.037649083635166815, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 3932.7020550000016, + "minMsPerSample": 2531.290066000016, + "maxMsPerSample": 4036.51675000001, + "medianAttemptsPerSecond": 130.19038636528487, + "medianOwnerCpuMicrosPerAttempt": 1836.0390625, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 10032 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 3932.7020550000016, + "eventsPerSecond": 130.19038636528487, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 940052, + "databaseCpuMillis": 1310, + "heapDeltaBytes": 43135368, + "rssBytes": 584593408, + "eventLoopUtilization": 0.21007404917495692, + "eventLoopDelayMaxMs": 11.517951, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 4036.51675000001, + "eventsPerSecond": 126.84203527707366, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 944238, + "databaseCpuMillis": 1350, + "heapDeltaBytes": 43039104, + "rssBytes": 689451008, + "eventLoopUtilization": 0.20575528688259898, + "eventLoopDelayMaxMs": 11.395071, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 12048 + }, + { + "elapsedMs": 3946.7278859999788, + "eventsPerSecond": 129.72771743808102, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 947201, + "databaseCpuMillis": 1400, + "heapDeltaBytes": 19321912, + "rssBytes": 724316160, + "eventLoopUtilization": 0.20906228216522119, + "eventLoopDelayMaxMs": 10.911743, + "retainedHistoryBefore": 12048, + "retainedHistoryAfter": 12560 + }, + { + "elapsedMs": 2537.2525580000074, + "eventsPerSecond": 201.79307668275038, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 789679, + "databaseCpuMillis": 1270, + "heapDeltaBytes": 20196480, + "rssBytes": 828911616, + "eventLoopUtilization": 0.26745306936349994, + "eventLoopDelayMaxMs": 11.878399, + "retainedHistoryBefore": 12560, + "retainedHistoryAfter": 13072 + }, + { + "elapsedMs": 2531.290066000016, + "eventsPerSecond": 202.2684033241083, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 772953, + "databaseCpuMillis": 1280, + "heapDeltaBytes": 21517296, + "rssBytes": 863645696, + "eventLoopUtilization": 0.26701041823947913, + "eventLoopDelayMaxMs": 12.500991, + "retainedHistoryBefore": 13072, + "retainedHistoryAfter": 13584 + } + ], + "medianBackendCpuMicrosPerAttempt": 2558.59375 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3455.9656609999947, + "minMsPerSample": 1826.3126879999763, + "maxMsPerSample": 3508.557459999982, + "medianAttemptsPerSecond": 148.149620170662, + "medianOwnerCpuMicrosPerAttempt": 1809.98828125, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3485.8394670000125, + "eventsPerSecond": 146.87997105059978, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 930011, + "databaseCpuMillis": 880, + "heapDeltaBytes": 18203472, + "rssBytes": 620900352, + "eventLoopUtilization": 0.2304560972894458, + "eventLoopDelayMaxMs": 11.001855, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 3508.557459999982, + "eventsPerSecond": 145.92891974469836, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 929185, + "databaseCpuMillis": 880, + "heapDeltaBytes": 22301576, + "rssBytes": 657338368, + "eventLoopUtilization": 0.23046290595990865, + "eventLoopDelayMaxMs": 11.862015, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 12048 + }, + { + "elapsedMs": 3455.9656609999947, + "eventsPerSecond": 148.149620170662, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 926714, + "databaseCpuMillis": 880, + "heapDeltaBytes": 21949432, + "rssBytes": 760098816, + "eventLoopUtilization": 0.23274264494734154, + "eventLoopDelayMaxMs": 12.861439, + "retainedHistoryBefore": 12048, + "retainedHistoryAfter": 12560 + }, + { + "elapsedMs": 1941.1345349999901, + "eventsPerSecond": 263.76327388353974, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 748956, + "databaseCpuMillis": 700, + "heapDeltaBytes": 43239696, + "rssBytes": 793653248, + "eventLoopUtilization": 0.33944890687207846, + "eventLoopDelayMaxMs": 12.189695, + "retainedHistoryBefore": 12560, + "retainedHistoryAfter": 13072 + }, + { + "elapsedMs": 1826.3126879999763, + "eventsPerSecond": 280.3462974134507, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 738883, + "databaseCpuMillis": 680, + "heapDeltaBytes": 43330280, + "rssBytes": 896937984, + "eventLoopUtilization": 0.3566787575351988, + "eventLoopDelayMaxMs": 11.206655, + "retainedHistoryBefore": 13072, + "retainedHistoryAfter": 13584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1718.75 + } + }, + { + "history": 10000, + "scenario": "replay", + "latencyGate": "improvement", + "medianLatencyChangePercent": -15.476961100443798, + "gate": { + "history": 10000, + "scenario": "replay", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.15476961100443798, + "noiseEnvelopeRelative": 0.026505442470828453, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 3438.1480029999802, + "minMsPerSample": 3386.6734299999953, + "maxMsPerSample": 3486.3577179999847, + "medianAttemptsPerSecond": 148.91738213516427, + "medianOwnerCpuMicrosPerAttempt": 1540.505859375, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 10016 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 3386.6734299999953, + "eventsPerSecond": 151.18080044700406, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 827332, + "databaseCpuMillis": 1120, + "heapDeltaBytes": 6471504, + "rssBytes": 487813120, + "eventLoopUtilization": 0.20477141383711972, + "eventLoopDelayMaxMs": 11.419647, + "retainedHistoryBefore": 10512, + "retainedHistoryAfter": 10768 + }, + { + "elapsedMs": 3486.3577179999847, + "eventsPerSecond": 146.8581371775351, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 804307, + "databaseCpuMillis": 1160, + "heapDeltaBytes": 8202280, + "rssBytes": 568946688, + "eventLoopUtilization": 0.20175513476160156, + "eventLoopDelayMaxMs": 11.034623, + "retainedHistoryBefore": 10768, + "retainedHistoryAfter": 11024 + }, + { + "elapsedMs": 3415.5798420000065, + "eventsPerSecond": 149.9013414074362, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 773874, + "databaseCpuMillis": 1170, + "heapDeltaBytes": 29757840, + "rssBytes": 594505728, + "eventLoopUtilization": 0.19850737181316191, + "eventLoopDelayMaxMs": 11.091967, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11280 + }, + { + "elapsedMs": 3438.1480029999802, + "eventsPerSecond": 148.91738213516427, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 788435, + "databaseCpuMillis": 1180, + "heapDeltaBytes": 29826088, + "rssBytes": 675639296, + "eventLoopUtilization": 0.2020578915506908, + "eventLoopDelayMaxMs": 11.018239, + "retainedHistoryBefore": 11280, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 3473.735579, + "eventsPerSecond": 147.39175978022823, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 788739, + "databaseCpuMillis": 1210, + "heapDeltaBytes": 29749272, + "rssBytes": 701460480, + "eventLoopUtilization": 0.1996617179807712, + "eventLoopDelayMaxMs": 11.149311, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 11792 + } + ], + "medianBackendCpuMicrosPerAttempt": 2285.15625 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 2906.027173999988, + "minMsPerSample": 2898.2331549999944, + "maxMsPerSample": 2942.022075999994, + "medianAttemptsPerSecond": 176.18555138810345, + "medianOwnerCpuMicrosPerAttempt": 1526.033203125, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 2906.027173999988, + "eventsPerSecond": 176.18555138810345, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 772907, + "databaseCpuMillis": 660, + "heapDeltaBytes": 31445808, + "rssBytes": 514027520, + "eventLoopUtilization": 0.23381315333850797, + "eventLoopDelayMaxMs": 10.887167, + "retainedHistoryBefore": 10512, + "retainedHistoryAfter": 10768 + }, + { + "elapsedMs": 2898.2331549999944, + "eventsPerSecond": 176.65935506834714, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 767969, + "databaseCpuMillis": 650, + "heapDeltaBytes": 31400504, + "rssBytes": 540504064, + "eventLoopUtilization": 0.23314539900175874, + "eventLoopDelayMaxMs": 10.985471, + "retainedHistoryBefore": 10768, + "retainedHistoryAfter": 11024 + }, + { + "elapsedMs": 2942.022075999994, + "eventsPerSecond": 174.0299653686219, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 782999, + "databaseCpuMillis": 650, + "heapDeltaBytes": 31302448, + "rssBytes": 620720128, + "eventLoopUtilization": 0.23216753420929628, + "eventLoopDelayMaxMs": 11.624447, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11280 + }, + { + "elapsedMs": 2903.915967000008, + "eventsPerSecond": 176.31364192984535, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 781329, + "databaseCpuMillis": 660, + "heapDeltaBytes": 10266944, + "rssBytes": 649949184, + "eventLoopUtilization": 0.23294698395467922, + "eventLoopDelayMaxMs": 10.952703, + "retainedHistoryBefore": 11280, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 2934.8292870000005, + "eventsPerSecond": 174.45648449398203, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 785233, + "databaseCpuMillis": 660, + "heapDeltaBytes": 9627632, + "rssBytes": 730296320, + "eventLoopUtilization": 0.23252480850131874, + "eventLoopDelayMaxMs": 11.296767, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 11792 + } + ], + "medianBackendCpuMicrosPerAttempt": 1289.0625 + } + }, + { + "history": 10000, + "scenario": "late-gap", + "latencyGate": "structural-only", + "medianLatencyChangePercent": 10.666043411885395, + "gate": { + "history": 10000, + "scenario": "late-gap", + "pairedCandidateWins": 1, + "noiseExceedingPairedWins": 0, + "requiredPairedWins": 4, + "latencyGate": "structural-only", + "improvementRelative": -0.10666043411885397, + "noiseEnvelopeRelative": 0.5361920987154964, + "improvedBeyondNoise": false, + "noRegressionBeyondNoise": true, + "acceptancePassed": null + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 7.571007999998983, + "minMsPerSample": 6.72492800001055, + "maxMsPerSample": 8.594982000009622, + "medianAttemptsPerSecond": 132.08280852432523, + "medianOwnerCpuMicrosPerAttempt": 2031, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 10001 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 7.489338999992469, + "eventsPerSecond": 133.52313201485543, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 1968, + "databaseCpuMillis": 0, + "heapDeltaBytes": 421064, + "rssBytes": 739078144, + "eventLoopUtilization": 0.24592820012147315, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 7.571007999998983, + "eventsPerSecond": 132.08280852432523, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2171, + "databaseCpuMillis": 0, + "heapDeltaBytes": 448768, + "rssBytes": 740913152, + "eventLoopUtilization": 0.2686368156622196, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 8.594982000009622, + "eventsPerSecond": 116.3469568637701, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2031, + "databaseCpuMillis": 0, + "heapDeltaBytes": 431048, + "rssBytes": 740913152, + "eventLoopUtilization": 0.22225871587886992, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 6.72492800001055, + "eventsPerSecond": 148.7004767929755, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 1658, + "databaseCpuMillis": 0, + "heapDeltaBytes": 431072, + "rssBytes": 474955776, + "eventLoopUtilization": 0.2337926323471412, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 8.193685000005644, + "eventsPerSecond": 122.04520920676242, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2617, + "databaseCpuMillis": 10, + "heapDeltaBytes": 448008, + "rssBytes": 474955776, + "eventLoopUtilization": 0.22935441722124913, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + } + ] + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 8.378534999996191, + "minMsPerSample": 7.88444399999571, + "maxMsPerSample": 9.637699999992037, + "medianAttemptsPerSecond": 119.35260758598665, + "medianOwnerCpuMicrosPerAttempt": 2185, + "sqlCallsPerAttempt": 7, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 8.378534999996191, + "eventsPerSecond": 119.35260758598665, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2151, + "databaseCpuMillis": 0, + "heapDeltaBytes": 449832, + "rssBytes": 739078144, + "eventLoopUtilization": 0.2387921426908228, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 7.90993600001093, + "eventsPerSecond": 126.42327320962119, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2185, + "databaseCpuMillis": 10, + "heapDeltaBytes": 496696, + "rssBytes": 740913152, + "eventLoopUtilization": 0.25760923439549777, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 8.744047000014689, + "eventsPerSecond": 114.36352068994141, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2317, + "databaseCpuMillis": 10, + "heapDeltaBytes": 460736, + "rssBytes": 740913152, + "eventLoopUtilization": 0.24630377379867668, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 9.637699999992037, + "eventsPerSecond": 103.75919565880099, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 3238, + "databaseCpuMillis": 10, + "heapDeltaBytes": 472200, + "rssBytes": 474955776, + "eventLoopUtilization": 0.22782605327107056, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + }, + { + "elapsedMs": 7.88444399999571, + "eventsPerSecond": 126.83202518789454, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2110, + "databaseCpuMillis": 0, + "heapDeltaBytes": 459264, + "rssBytes": 474955776, + "eventLoopUtilization": 0.24978447863559844, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 10000, + "retainedHistoryAfter": 10001 + } + ] + } + }, + { + "history": 10000, + "scenario": "warm-suffix", + "latencyGate": "improvement", + "medianLatencyChangePercent": -21.639327212950633, + "gate": { + "history": 10000, + "scenario": "warm-suffix", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.21639327212950632, + "noiseEnvelopeRelative": 0.023755380399753674, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 4579.705992000003, + "minMsPerSample": 4509.927175000019, + "maxMsPerSample": 4727.905091000022, + "medianAttemptsPerSecond": 111.79756973359866, + "medianOwnerCpuMicrosPerAttempt": 2160.947265625, + "sqlCallsPerAttempt": 6, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 10032, + 0 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 4579.705992000003, + "eventsPerSecond": 111.79756973359866, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1083588, + "databaseCpuMillis": 1450, + "heapDeltaBytes": 43360928, + "rssBytes": 580734976, + "eventLoopUtilization": 0.20614416612919412, + "eventLoopDelayMaxMs": 11.599871, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 4509.927175000019, + "eventsPerSecond": 113.52733206828286, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1119000, + "databaseCpuMillis": 1490, + "heapDeltaBytes": 24170664, + "rssBytes": 648630272, + "eventLoopUtilization": 0.21099934823181485, + "eventLoopDelayMaxMs": 12.771327, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 12048 + }, + { + "elapsedMs": 4528.19080099999, + "eventsPerSecond": 113.06944042352008, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1110374, + "databaseCpuMillis": 1520, + "heapDeltaBytes": 23759888, + "rssBytes": 504045568, + "eventLoopUtilization": 0.20752811009645766, + "eventLoopDelayMaxMs": 11.526143, + "retainedHistoryBefore": 12048, + "retainedHistoryAfter": 12560 + }, + { + "elapsedMs": 4590.455458999961, + "eventsPerSecond": 111.53577342661771, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1091904, + "databaseCpuMillis": 1600, + "heapDeltaBytes": 21957944, + "rssBytes": 579280896, + "eventLoopUtilization": 0.20651793655296005, + "eventLoopDelayMaxMs": 12.165119, + "retainedHistoryBefore": 12560, + "retainedHistoryAfter": 13072 + }, + { + "elapsedMs": 4727.905091000022, + "eventsPerSecond": 108.29320600674417, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1106405, + "databaseCpuMillis": 1630, + "heapDeltaBytes": 43164008, + "rssBytes": 614539264, + "eventLoopUtilization": 0.2020037399749818, + "eventLoopDelayMaxMs": 12.115967, + "retainedHistoryBefore": 13072, + "retainedHistoryAfter": 13584 + } + ], + "medianBackendCpuMicrosPerAttempt": 2968.75 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3588.6884270000155, + "minMsPerSample": 3509.038305000053, + "maxMsPerSample": 3610.154972999997, + "medianAttemptsPerSecond": 142.67050773978988, + "medianOwnerCpuMicrosPerAttempt": 1836.185546875, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3509.038305000053, + "eventsPerSecond": 145.90892304323032, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 940127, + "databaseCpuMillis": 900, + "heapDeltaBytes": 21859792, + "rssBytes": 616386560, + "eventLoopUtilization": 0.23026132029381585, + "eventLoopDelayMaxMs": 10.903551, + "retainedHistoryBefore": 11024, + "retainedHistoryAfter": 11536 + }, + { + "elapsedMs": 3551.4873779999907, + "eventsPerSecond": 144.16494992256773, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1208646, + "databaseCpuMillis": 890, + "heapDeltaBytes": -213255608, + "rssBytes": 648630272, + "eventLoopUtilization": 0.24061827657913593, + "eventLoopDelayMaxMs": 13.885439, + "retainedHistoryBefore": 11536, + "retainedHistoryAfter": 12048 + }, + { + "elapsedMs": 3588.6884270000155, + "eventsPerSecond": 142.67050773978988, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 924635, + "databaseCpuMillis": 910, + "heapDeltaBytes": 43370080, + "rssBytes": 504176640, + "eventLoopUtilization": 0.223587560602187, + "eventLoopDelayMaxMs": 11.460607, + "retainedHistoryBefore": 12048, + "retainedHistoryAfter": 12560 + }, + { + "elapsedMs": 3610.154972999997, + "eventsPerSecond": 141.82216659096326, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 947591, + "databaseCpuMillis": 910, + "heapDeltaBytes": 18739384, + "rssBytes": 541007872, + "eventLoopUtilization": 0.22593516112587772, + "eventLoopDelayMaxMs": 11.321343, + "retainedHistoryBefore": 12560, + "retainedHistoryAfter": 13072 + }, + { + "elapsedMs": 3609.776329999964, + "eventsPerSecond": 141.83704285079764, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 938302, + "databaseCpuMillis": 920, + "heapDeltaBytes": 21847816, + "rssBytes": 650321920, + "eventLoopUtilization": 0.2241815910001061, + "eventLoopDelayMaxMs": 11.755519, + "retainedHistoryBefore": 13072, + "retainedHistoryAfter": 13584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1777.34375 + } + }, + { + "history": 100000, + "scenario": "ordered", + "latencyGate": "improvement", + "medianLatencyChangePercent": -55.257897660661556, + "gate": { + "history": 100000, + "scenario": "ordered", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.5525789766066157, + "noiseEnvelopeRelative": 0.01261232067789408, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 7966.907822000037, + "minMsPerSample": 7861.0345029999735, + "maxMsPerSample": 8091.094551000046, + "medianAttemptsPerSecond": 64.26583706493368, + "medianOwnerCpuMicrosPerAttempt": 1957.810546875, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 100032 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 7861.0345029999735, + "eventsPerSecond": 65.13137676785512, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1017126, + "databaseCpuMillis": 5150, + "heapDeltaBytes": 24167160, + "rssBytes": 493514752, + "eventLoopUtilization": 0.10845624115142082, + "eventLoopDelayMaxMs": 11.075583, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 7964.565665000002, + "eventsPerSecond": 64.28473585822333, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1002399, + "databaseCpuMillis": 5210.000000000015, + "heapDeltaBytes": 19197840, + "rssBytes": 546861056, + "eventLoopUtilization": 0.10892251912068208, + "eventLoopDelayMaxMs": 11.444223, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 102048 + }, + { + "elapsedMs": 7972.131310000026, + "eventsPerSecond": 64.22372889891578, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1001144, + "databaseCpuMillis": 5230, + "heapDeltaBytes": 21279864, + "rssBytes": 581464064, + "eventLoopUtilization": 0.10822476362475879, + "eventLoopDelayMaxMs": 11.132927, + "retainedHistoryBefore": 102048, + "retainedHistoryAfter": 102560 + }, + { + "elapsedMs": 7966.907822000037, + "eventsPerSecond": 64.26583706493368, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1007683, + "databaseCpuMillis": 5250, + "heapDeltaBytes": 21488360, + "rssBytes": 686321664, + "eventLoopUtilization": 0.10793118415910868, + "eventLoopDelayMaxMs": 12.541951, + "retainedHistoryBefore": 102560, + "retainedHistoryAfter": 103072 + }, + { + "elapsedMs": 8091.094551000046, + "eventsPerSecond": 63.27944838275529, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 994177, + "databaseCpuMillis": 5320, + "heapDeltaBytes": 42565200, + "rssBytes": 718303232, + "eventLoopUtilization": 0.10638311818076697, + "eventLoopDelayMaxMs": 11.788287, + "retainedHistoryBefore": 103072, + "retainedHistoryAfter": 103584 + } + ], + "medianBackendCpuMicrosPerAttempt": 10214.84375 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3564.5620510000153, + "minMsPerSample": 3159.185126999975, + "maxMsPerSample": 3578.252383999992, + "medianAttemptsPerSecond": 143.63615857279345, + "medianOwnerCpuMicrosPerAttempt": 1824.052734375, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3577.3923729999806, + "eventsPerSecond": 143.12100731926137, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 933915, + "databaseCpuMillis": 900, + "heapDeltaBytes": 22087512, + "rssBytes": 493514752, + "eventLoopUtilization": 0.22738024536231222, + "eventLoopDelayMaxMs": 11.657215, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 3564.5620510000153, + "eventsPerSecond": 143.63615857279345, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 921252, + "databaseCpuMillis": 890, + "heapDeltaBytes": 43232136, + "rssBytes": 508456960, + "eventLoopUtilization": 0.22695668429101876, + "eventLoopDelayMaxMs": 11.313151, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 102048 + }, + { + "elapsedMs": 3505.9473670000443, + "eventsPerSecond": 146.037560295181, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 941710, + "databaseCpuMillis": 890, + "heapDeltaBytes": 43210936, + "rssBytes": 614756352, + "eventLoopUtilization": 0.23052166896796492, + "eventLoopDelayMaxMs": 11.313151, + "retainedHistoryBefore": 102048, + "retainedHistoryAfter": 102560 + }, + { + "elapsedMs": 3159.185126999975, + "eventsPerSecond": 162.0671088959593, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 897724, + "databaseCpuMillis": 840, + "heapDeltaBytes": 19564480, + "rssBytes": 651456512, + "eventLoopUtilization": 0.24517260716667083, + "eventLoopDelayMaxMs": 11.378687, + "retainedHistoryBefore": 102560, + "retainedHistoryAfter": 103072 + }, + { + "elapsedMs": 3578.252383999992, + "eventsPerSecond": 143.08660906351574, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 935054, + "databaseCpuMillis": 880, + "heapDeltaBytes": 19428160, + "rssBytes": 754610176, + "eventLoopUtilization": 0.2273159064151384, + "eventLoopDelayMaxMs": 11.698175, + "retainedHistoryBefore": 103072, + "retainedHistoryAfter": 103584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1738.28125 + } + }, + { + "history": 100000, + "scenario": "replay", + "latencyGate": "improvement", + "medianLatencyChangePercent": -59.92613754805023, + "gate": { + "history": 100000, + "scenario": "replay", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.5992613754805023, + "noiseEnvelopeRelative": 0.0182885616009952, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 7417.332698000013, + "minMsPerSample": 7341.411260999972, + "maxMsPerSample": 7481.748485999997, + "medianAttemptsPerSecond": 69.02750905835114, + "medianOwnerCpuMicrosPerAttempt": 1696.93359375, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 100016 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 7341.411260999972, + "eventsPerSecond": 69.74135922883315, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 868830, + "databaseCpuMillis": 4910, + "heapDeltaBytes": 36287472, + "rssBytes": 566996992, + "eventLoopUtilization": 0.10211082867782299, + "eventLoopDelayMaxMs": 12.623871, + "retainedHistoryBefore": 100512, + "retainedHistoryAfter": 100768 + }, + { + "elapsedMs": 7466.188880000031, + "eventsPerSecond": 68.57581668895548, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 901973, + "databaseCpuMillis": 5020, + "heapDeltaBytes": 15495432, + "rssBytes": 660975616, + "eventLoopUtilization": 0.10184286117017576, + "eventLoopDelayMaxMs": 11.059199, + "retainedHistoryBefore": 100768, + "retainedHistoryAfter": 101024 + }, + { + "elapsedMs": 7481.748485999997, + "eventsPerSecond": 68.43320127080788, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 884070, + "databaseCpuMillis": 5030, + "heapDeltaBytes": 36101864, + "rssBytes": 690073600, + "eventLoopUtilization": 0.10153679608957335, + "eventLoopDelayMaxMs": 11.231231, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101280 + }, + { + "elapsedMs": 7415.438909999968, + "eventsPerSecond": 69.04513761276502, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 849748, + "databaseCpuMillis": 5040, + "heapDeltaBytes": 29576680, + "rssBytes": 773435392, + "eventLoopUtilization": 0.09932039595451407, + "eventLoopDelayMaxMs": 11.952127, + "retainedHistoryBefore": 101280, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 7417.332698000013, + "eventsPerSecond": 69.02750905835114, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 843213, + "databaseCpuMillis": 5050, + "heapDeltaBytes": 29425576, + "rssBytes": 799125504, + "eventLoopUtilization": 0.09839282250179215, + "eventLoopDelayMaxMs": 11.476991, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 101792 + } + ], + "medianBackendCpuMicrosPerAttempt": 9824.21875 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 2972.4117030000198, + "minMsPerSample": 2961.137526000035, + "maxMsPerSample": 2993.473048999964, + "medianAttemptsPerSecond": 172.25070116742054, + "medianOwnerCpuMicrosPerAttempt": 1560.697265625, + "sqlCallsPerAttempt": 4, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 2965.7554370000144, + "eventsPerSecond": 172.63729625592777, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 800319, + "databaseCpuMillis": 660, + "heapDeltaBytes": 16064872, + "rssBytes": 599633920, + "eventLoopUtilization": 0.23318341153188263, + "eventLoopDelayMaxMs": 11.354111, + "retainedHistoryBefore": 100512, + "retainedHistoryAfter": 100768 + }, + { + "elapsedMs": 2961.137526000035, + "eventsPerSecond": 172.90652511219903, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 800083, + "databaseCpuMillis": 670, + "heapDeltaBytes": 37003496, + "rssBytes": 629125120, + "eventLoopUtilization": 0.23368902896488467, + "eventLoopDelayMaxMs": 12.607487, + "retainedHistoryBefore": 100768, + "retainedHistoryAfter": 101024 + }, + { + "elapsedMs": 2974.1170730000013, + "eventsPerSecond": 172.15193196263252, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 799077, + "databaseCpuMillis": 670, + "heapDeltaBytes": 34327120, + "rssBytes": 718385152, + "eventLoopUtilization": 0.23209331026134203, + "eventLoopDelayMaxMs": 11.493375, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101280 + }, + { + "elapsedMs": 2993.473048999964, + "eventsPerSecond": 171.03878726118646, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 796053, + "databaseCpuMillis": 670, + "heapDeltaBytes": 9540416, + "rssBytes": 747614208, + "eventLoopUtilization": 0.23079539033237936, + "eventLoopDelayMaxMs": 12.320767, + "retainedHistoryBefore": 101280, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 2972.4117030000198, + "eventsPerSecond": 172.25070116742054, + "newEvents": 256, + "duplicateEvents": 256, + "appCpuMicros": 784554, + "databaseCpuMillis": 680, + "heapDeltaBytes": 9840840, + "rssBytes": 828354560, + "eventLoopUtilization": 0.23008342642244264, + "eventLoopDelayMaxMs": 11.198463, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 101792 + } + ], + "medianBackendCpuMicrosPerAttempt": 1308.59375 + } + }, + { + "history": 100000, + "scenario": "late-gap", + "latencyGate": "structural-only", + "medianLatencyChangePercent": -65.15117976074754, + "gate": { + "history": 100000, + "scenario": "late-gap", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "structural-only", + "improvementRelative": 0.6515117976074755, + "noiseEnvelopeRelative": 0.36043968254199116, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": null + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 24.54399299994111, + "minMsPerSample": 22.92438400001265, + "maxMsPerSample": 25.495492000016384, + "medianAttemptsPerSecond": 40.74316677006872, + "medianOwnerCpuMicrosPerAttempt": 2208, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 100001 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 24.756151999987196, + "eventsPerSecond": 40.39399984296902, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2208, + "databaseCpuMillis": 30, + "heapDeltaBytes": 430536, + "rssBytes": 834383872, + "eventLoopUtilization": 0.08282426732450086, + "eventLoopDelayMaxMs": 10.100735, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 23.272873000008985, + "eventsPerSecond": 42.968480943440625, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 1831, + "databaseCpuMillis": 10, + "heapDeltaBytes": 425656, + "rssBytes": 427847680, + "eventLoopUtilization": 0.07334030794031964, + "eventLoopDelayMaxMs": 10.084351, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 25.495492000016384, + "eventsPerSecond": 39.22262021848244, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2572, + "databaseCpuMillis": 10, + "heapDeltaBytes": 429696, + "rssBytes": 424796160, + "eventLoopUtilization": 0.08116453684997998, + "eventLoopDelayMaxMs": 10.076159, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 24.54399299994111, + "eventsPerSecond": 40.74316677006872, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 4049, + "databaseCpuMillis": 20, + "heapDeltaBytes": 447136, + "rssBytes": 413315072, + "eventLoopUtilization": 0.08385441686916538, + "eventLoopDelayMaxMs": 10.092543, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 22.92438400001265, + "eventsPerSecond": 43.62167376010837, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 1959, + "databaseCpuMillis": 20, + "heapDeltaBytes": 431056, + "rssBytes": 413315072, + "eventLoopUtilization": 0.0797149679245784, + "eventLoopDelayMaxMs": 10.100735, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + } + ] + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 8.553292000084184, + "minMsPerSample": 8.25038499996299, + "maxMsPerSample": 8.910880999988876, + "medianAttemptsPerSecond": 116.9140489989302, + "medianOwnerCpuMicrosPerAttempt": 2577, + "sqlCallsPerAttempt": 7, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 8.36767999996664, + "eventsPerSecond": 119.50743814342646, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2577, + "databaseCpuMillis": 0, + "heapDeltaBytes": 460264, + "rssBytes": 834383872, + "eventLoopUtilization": 0.2574962080047841, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 8.25038499996299, + "eventsPerSecond": 121.20646491096912, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2782, + "databaseCpuMillis": 0, + "heapDeltaBytes": 473752, + "rssBytes": 427847680, + "eventLoopUtilization": 0.268726992202629, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 8.677777000004426, + "eventsPerSecond": 115.23688612872745, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2213, + "databaseCpuMillis": 10, + "heapDeltaBytes": 453992, + "rssBytes": 424796160, + "eventLoopUtilization": 0.23848348689708154, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 8.553292000084184, + "eventsPerSecond": 116.9140489989302, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 2398, + "databaseCpuMillis": 0, + "heapDeltaBytes": 477712, + "rssBytes": 413315072, + "eventLoopUtilization": 0.25951638599790944, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + }, + { + "elapsedMs": 8.910880999988876, + "eventsPerSecond": 112.222349283, + "newEvents": 1, + "duplicateEvents": 0, + "appCpuMicros": 3073, + "databaseCpuMillis": 0, + "heapDeltaBytes": 472528, + "rssBytes": 413315072, + "eventLoopUtilization": 0.25100004334985515, + "eventLoopDelayMaxMs": null, + "retainedHistoryBefore": 100000, + "retainedHistoryAfter": 100001 + } + ] + } + }, + { + "history": 100000, + "scenario": "warm-suffix", + "latencyGate": "improvement", + "medianLatencyChangePercent": -57.58982338506322, + "gate": { + "history": 100000, + "scenario": "warm-suffix", + "pairedCandidateWins": 5, + "noiseExceedingPairedWins": 5, + "requiredPairedWins": 4, + "latencyGate": "improvement", + "improvementRelative": 0.5758982338506322, + "noiseEnvelopeRelative": 0.012072360725630761, + "improvedBeyondNoise": true, + "noRegressionBeyondNoise": true, + "acceptancePassed": true + }, + "baseline": { + "sampleCount": 5, + "medianMsPerSample": 8526.662955999956, + "minMsPerSample": 8376.971770000062, + "maxMsPerSample": 8711.299480000045, + "medianAttemptsPerSecond": 60.04693778117745, + "medianOwnerCpuMicrosPerAttempt": 2204.890625, + "sqlCallsPerAttempt": 6, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1, + 100032, + 0 + ], + "boundedProjectionSql": null, + "samples": [ + { + "elapsedMs": 8376.971770000062, + "eventsPerSecond": 61.11993857178728, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1345004, + "databaseCpuMillis": 5300, + "heapDeltaBytes": -46485224, + "rssBytes": 485220352, + "eventLoopUtilization": 0.11879738316601422, + "eventLoopDelayMaxMs": 12.828671, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 8502.499946999946, + "eventsPerSecond": 60.21758343916909, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1125478, + "databaseCpuMillis": 5380, + "heapDeltaBytes": 22448944, + "rssBytes": 469954560, + "eventLoopUtilization": 0.11427375863353302, + "eventLoopDelayMaxMs": 12.001279, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 102048 + }, + { + "elapsedMs": 8526.662955999956, + "eventsPerSecond": 60.04693778117745, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1115169, + "databaseCpuMillis": 5420, + "heapDeltaBytes": 43150128, + "rssBytes": 505344000, + "eventLoopUtilization": 0.11367558863277402, + "eventLoopDelayMaxMs": 11.091967, + "retainedHistoryBefore": 102048, + "retainedHistoryAfter": 102560 + }, + { + "elapsedMs": 8603.343594999984, + "eventsPerSecond": 59.511746142227736, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1128904, + "databaseCpuMillis": 5460, + "heapDeltaBytes": 18279096, + "rssBytes": 616230912, + "eventLoopUtilization": 0.11346074559718469, + "eventLoopDelayMaxMs": 12.206079, + "retainedHistoryBefore": 102560, + "retainedHistoryAfter": 103072 + }, + { + "elapsedMs": 8711.299480000045, + "eventsPerSecond": 58.7742392711308, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1138729, + "databaseCpuMillis": 5560, + "heapDeltaBytes": 43050992, + "rssBytes": 651751424, + "eventLoopUtilization": 0.11293843233008342, + "eventLoopDelayMaxMs": 11.665407, + "retainedHistoryBefore": 103072, + "retainedHistoryAfter": 103584 + } + ], + "medianBackendCpuMicrosPerAttempt": 10585.9375 + }, + "candidate": { + "sampleCount": 5, + "medianMsPerSample": 3616.1728189999703, + "minMsPerSample": 3605.300099000102, + "maxMsPerSample": 3642.397573000053, + "medianAttemptsPerSecond": 141.5861535460549, + "medianOwnerCpuMicrosPerAttempt": 1824.88671875, + "sqlCallsPerAttempt": 5, + "transactionsPerAttempt": 1, + "diagnosticHistoryScanRows": [ + 1 + ], + "boundedProjectionSql": true, + "samples": [ + { + "elapsedMs": 3605.300099000102, + "eventsPerSecond": 142.01314341127906, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 1184837, + "databaseCpuMillis": 910, + "heapDeltaBytes": -5512160, + "rssBytes": 485220352, + "eventLoopUtilization": 0.2332936860437626, + "eventLoopDelayMaxMs": 11.583487, + "retainedHistoryBefore": 101024, + "retainedHistoryAfter": 101536 + }, + { + "elapsedMs": 3642.397573000053, + "eventsPerSecond": 140.5667530077702, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 969130, + "databaseCpuMillis": 930, + "heapDeltaBytes": 26272056, + "rssBytes": 431812608, + "eventLoopUtilization": 0.2229210270213245, + "eventLoopDelayMaxMs": 11.542527, + "retainedHistoryBefore": 101536, + "retainedHistoryAfter": 102048 + }, + { + "elapsedMs": 3616.1728189999703, + "eventsPerSecond": 141.5861535460549, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 934342, + "databaseCpuMillis": 910, + "heapDeltaBytes": 21545664, + "rssBytes": 541257728, + "eventLoopUtilization": 0.225522187954706, + "eventLoopDelayMaxMs": 10.928127, + "retainedHistoryBefore": 102048, + "retainedHistoryAfter": 102560 + }, + { + "elapsedMs": 3641.679226999986, + "eventsPerSecond": 140.594480756007, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 930754, + "databaseCpuMillis": 940, + "heapDeltaBytes": 43088120, + "rssBytes": 574550016, + "eventLoopUtilization": 0.2232457717168903, + "eventLoopDelayMaxMs": 12.386303, + "retainedHistoryBefore": 102560, + "retainedHistoryAfter": 103072 + }, + { + "elapsedMs": 3613.3354030000046, + "eventsPerSecond": 141.6973358119225, + "newEvents": 512, + "duplicateEvents": 0, + "appCpuMicros": 926831, + "databaseCpuMillis": 930, + "heapDeltaBytes": 17742536, + "rssBytes": 692514816, + "eventLoopUtilization": 0.22265824496948625, + "eventLoopDelayMaxMs": 12.247039, + "retainedHistoryBefore": 103072, + "retainedHistoryAfter": 103584 + } + ], + "medianBackendCpuMicrosPerAttempt": 1816.40625 + } + } + ], + "artifacts": [ + { + "path": "native-event-ingestion-2026-11-03/service-aa-b0.json.gz", + "decompressedSha256": "92ae98cd5bb22b4bf1b6425150b2615d280d046c3d24ca341358847eede28fe5", + "gzipSha256": "ea7e6826ce14d884b9cda222151cb5d0d014aaace26aa50347408c85217efa8b", + "rawBytes": 3171042, + "gzipBytes": 160687 + }, + { + "path": "native-event-ingestion-2026-11-03/service-b0-b1.json.gz", + "decompressedSha256": "11d7f4c5fcfbeab39d9b38224aa151a3cf6430bb103c4d45b847789e72cb2899", + "gzipSha256": "4f968a0ba573d20b4e26f8635230d0b9f677b69dfeea0b8d18deaed0c8853dd5", + "rawBytes": 3618561, + "gzipBytes": 178863 + } + ], + "verification": { + "currentSourcesReportValidationExit": 0, + "cursorRequiredCasesAllPass": true, + "correctnessAndCleanupComplete": true + }, + "limitations": [ + "Browser and batching performance gates remain pending.", + "Closed-loop service results are not production application or deployed performance.", + "Small-history late-gap timing regressed; it was preregistered as structural-only.", + "Each history label is the seeded history; raw samples record actual retained history before and after." + ] +} diff --git a/doc/benchmarks/2026-11-03-native-event-ingestion.md b/doc/benchmarks/2026-11-03-native-event-ingestion.md new file mode 100644 index 00000000000..e0555cd0fa4 --- /dev/null +++ b/doc/benchmarks/2026-11-03-native-event-ingestion.md @@ -0,0 +1,40 @@ +# Native event ingestion measurements (2026-11-03) + +Cursor service acceptance has passed. Application and batching acceptance remain in progress. These measurements use the actual append service and real PostgreSQL on a dedicated quiet host. They establish a local service improvement. + +The long-history cursor/range operations are bounded; replay still performs its required indexed event identity lookup. At 100k seeded events, the separately recorded baseline plans examine about 100,000 source entries; the candidate performs a one-row identity lookup and bounded projection work. The raw reports retain the SQL and plans. + +## Cursor comparison + +Each ordinary sample contains **512 append attempts** (16 groups of 32). Five baseline/candidate pairs alternate order; two warmups, seeding, rebuild preparation and verification are excluded. Replay attempts reuse receipts and create no new events. The table reports median wall time per 512 attempts, not individual event latency. + +| Seeded history / case | B0 ms/512 | B1 ms/512 | Change | Pairs beating noise | A/A noise | SQL calls/attempt B0 → B1 | +| --- | ---: | ---: | ---: | ---: | ---: | ---: | +| 1,000 / ordered | 3821.9 | 3602.4 | -5.74% | 0/5 | 14.603% | 5 → 5 | +| 1,000 / replay | 3115.1 | 3044.4 | -2.27% | 0/5 | 5.697% | 4 → 4 | +| 1,000 / warm-suffix | 4172.9 | 3627.0 | -13.08% | 5/5 | 2.429% | 6 → 5 | +| 10,000 / ordered | 3932.7 | 3456.0 | -12.12% | 5/5 | 3.765% | 5 → 5 | +| 10,000 / replay | 3438.1 | 2906.0 | -15.48% | 5/5 | 2.651% | 4 → 4 | +| 10,000 / warm-suffix | 4579.7 | 3588.7 | -21.64% | 5/5 | 2.376% | 6 → 5 | +| 100,000 / ordered | 7966.9 | 3564.6 | -55.26% | 5/5 | 1.261% | 5 → 5 | +| 100,000 / replay | 7417.3 | 2972.4 | -59.93% | 5/5 | 1.829% | 4 → 4 | +| 100,000 / warm-suffix | 8526.7 | 3616.2 | -57.59% | 5/5 | 1.207% | 6 → 5 | + +All six required 10k/100k cases exceed their observed per-case A/A envelope in **5/5 individual pairs** and in the median. The 1k cases pass nonregression; 1k ordered and replay gains remain inside noise. Every A/A timing case met the preregistered maximum paired difference ≤20% and median drift ≤10%; the largest median drift was 1.791%. Both full experiments completed correctness checks and cleanup. + +Transactions remain one per attempt in this cursor slice. For 100k ordered writes, median backend CPU falls from 10.215 to 1.738 ms/attempt; owner-process CPU falls from 1.958 to 1.824 ms/attempt. The backend clock has 10 ms resolution across each 512-attempt sample. Owner CPU describes the benchmark process, excluding the assembled application, Rust, Chromium and load driver. + +Late gap closure is a separately seeded **one-append structural diagnostic**. Its median wall time changes +15.15% at 1k, +10.67% at 10k and −65.15% at 100k. These values disclose a small-history tradeoff; they are excluded from the preregistered latency gate and do not demonstrate a general gap-closure speedup. + +## Reproduce and inspect + +See [experiment commands](../../scripts/native-ingestion/README.md) and the [implementation and acceptance contract](../plans/2026-11-03-native-event-ingestion.md). Exact frozen revisions, all paired samples, sample min/max spread, CPU, SQL diagnostics, history counts and gate results are in the [machine-readable summary](2026-11-03-native-event-ingestion.json). Full original reports are retained below as deterministic gzip files: + +| Original report | SHA256 of decompressed original | +| --- | --- | +| [service-aa-b0.json.gz](native-event-ingestion-2026-11-03/service-aa-b0.json.gz) | `92ae98cd5bb22b4bf1b6425150b2615d280d046c3d24ca341358847eede28fe5` | +| [service-b0-b1.json.gz](native-event-ingestion-2026-11-03/service-b0-b1.json.gz) | `11d7f4c5fcfbeab39d9b38224aa151a3cf6430bb103c4d45b847789e72cb2899` | + +Use `gzip -dc ` to inspect the complete original JSON. Its byte-for-byte SHA256 is recorded above and in the summary. No p99 is inferred from five service samples. The initial noisy calibration and failed browser qualifications remain excluded; the final report will record their failure ledger alongside the application comparisons. + +Application streaming, control responsiveness, batching, profile-only backlog/resource diagnostics, final delivery revisions and current-head CI remain pending. The live-provider functional journey has passed separately. This report makes no deployed production or 10,000-agent qualification claim. diff --git a/doc/benchmarks/native-event-ingestion-2026-11-03/service-aa-b0.json.gz b/doc/benchmarks/native-event-ingestion-2026-11-03/service-aa-b0.json.gz new file mode 100644 index 00000000000..a881db702f4 Binary files /dev/null and b/doc/benchmarks/native-event-ingestion-2026-11-03/service-aa-b0.json.gz differ diff --git a/doc/benchmarks/native-event-ingestion-2026-11-03/service-b0-b1.json.gz b/doc/benchmarks/native-event-ingestion-2026-11-03/service-b0-b1.json.gz new file mode 100644 index 00000000000..04dd61e0407 Binary files /dev/null and b/doc/benchmarks/native-event-ingestion-2026-11-03/service-b0-b1.json.gz differ