Files
citas-getter/benchmark_results.json
cc-ultrav-1 7da1dbe0fd Smoke-test verified booking stack v1.3.1 — live API flow confirmed
Full end-to-end smoke test against live cita API (194.179.69.48:443):
  - TLS pre-connect: 415ms, TCP_NODELAY set, connection reused
  - getHorasCitas: 200, 9 slots returned
  - Booking 15:15: 200, 'Fecha posterior' (expected pre-midnight)
  - Skew retry 43ms x5: verified retry stack
  - Post-verify: slot still free, no accidental citas
  - TLS tunnel reuse PROVEN: same fd (3), same port (53880), only 1 TCP conn in ss

Fixes in this commit:
  - Fixed 3 stale comments referencing old 200ms skew retry delay (now 43ms)
    (lines 276, 295, 372) — line 351 kept as intentional comparison
  - All 56 tests pass

Changes:
  - book_final.py: comment fixes (lines 276, 295, 351, 372)
  - test_book_final.py: unchanged (40 tests)
  - test_connection_reuse.py: unchanged (16 tests)
2026-10-03 19:30:03 +02:00

103 lines
3.1 KiB
JSON

{
"timestamp": "2026-10-03T12:10:52.394405",
"samples": 10,
"results": {
"PHASE_2_TLS_connect_ms": [
341.08829498291016,
459.794282913208,
339.19596672058105,
357.2046756744385,
450.36840438842773,
609.1663837432861,
335.5395793914795,
337.7821445465088,
497.575044631958,
349.7295379638672
],
"PHASE_3b_getHorasCitas_ms": [
216.0477638244629,
190.79256057739258,
182.3132038116455,
174.3307113647461,
176.0270595550537,
182.633638381958,
187.73150444030762,
185.6544017791748,
196.17199897766113,
178.0998706817627
],
"PHASE_3b_json_parse_getHorasCitas_ms": [
0.5631446838378906
],
"PHASE_4_insertarCitaPrevia_ms": [
141.754150390625,
149.1830348968506,
148.38504791259766,
166.24855995178223,
154.03008460998535,
151.71289443969727,
170.42064666748047,
142.0917510986328,
139.70160484313965,
153.83124351501465
],
"PHASE_4_json_build_ms": [
0.007417201995849609,
0.007491111755371094,
0.00774383544921875,
0.007500648498535156,
0.019125938415527344,
0.012791156768798828,
0.014355182647705078,
0.00879049301147461,
0.00774383544921875,
0.007653236389160156
],
"PHASE_3b_json_build_ms": [
0.0032949447631835938,
0.004036426544189453,
0.0035715103149414062,
0.00917673110961914,
0.005028247833251953,
0.0034928321838378906,
0.003907680511474609,
0.007774829864501953,
0.003864765167236328,
0.005927085876464844
],
"PHASE_4b_insertar_with_reconnect_ms": [
462.73159980773926,
467.8497314453125,
463.3975028991699,
443.1602954864502,
459.06782150268555,
514.0745639801025,
478.58738899230957,
470.151424407959,
620.6550598144531,
476.0560989379883
],
"PHASE_5_verify_getHorasCitas_ms": [
147.42660522460938,
161.85998916625977,
153.33175659179688,
161.17453575134277,
151.48520469665527,
154.11877632141113,
142.39954948425293,
152.28748321533203,
171.97275161743164,
167.91844367980957
]
},
"summary": {
"PHASE_2_TLS_connect_ms": "min=336ms p50=353ms p95=559ms p99=599ms max=609ms avg=408ms (n=10)",
"PHASE_3b_getHorasCitas_ms": "min=174ms p50=184ms p95=207ms p99=214ms max=216ms avg=187ms (n=10)",
"PHASE_3b_json_parse_getHorasCitas_ms": "min=1ms p50=1ms p95=1ms p99=1ms max=1ms avg=1ms (n=1)",
"PHASE_4_insertarCitaPrevia_ms": "min=140ms p50=150ms p95=169ms p99=170ms max=170ms avg=152ms (n=10)",
"PHASE_4_json_build_ms": "min=0ms p50=0ms p95=0ms p99=0ms max=0ms avg=0ms (n=10)",
"PHASE_3b_json_build_ms": "min=0ms p50=0ms p95=0ms p99=0ms max=0ms avg=0ms (n=10)",
"PHASE_4b_insertar_with_reconnect_ms": "min=443ms p50=469ms p95=573ms p99=611ms max=621ms avg=486ms (n=10)",
"PHASE_5_verify_getHorasCitas_ms": "min=142ms p50=154ms p95=170ms p99=172ms max=172ms avg=156ms (n=10)"
}
}