Cloudflare vs PydanticAI Gateway Benchmark Comparison

Cloudflare
Faster in 0 of 2
vs
Pydantic
Faster in 2 of 2

Pydantic was faster in both shared AI gateway benchmarks.

Shared benchmarks
2
Last run
October 30, 2026
Want the full run details?Sign up free →

Scorecard

Median of each benchmark's primary metric; lower is better. Medians within 5% count as roughly even, and a benchmark gets no speed verdict when either provider completed fewer than 50% of runs.

BenchmarkCloudflarePydanticResultRatio
Anthropic
Cold end-to-end latency · Run October 30, 2026
519ms
100% success
393ms
100% success
Pydantic faster
1.32x
OpenAI
Cold end-to-end latency · Run October 30, 2026
803ms
100% success
681ms
100% success
Pydantic faster
1.18x

Anthropic

Run October 30, 2026

Time for a cold request routed through the gateway to Claude Haiku 4.5 to return its complete response.

Cold end-to-end latency

Cloudflare

100% success
Median
519ms
P95
642ms
P99
670ms
Cloudflare Anthropic results →

Pydantic

100% success
Median
393ms
P95
475ms
P99
514ms
Pydantic Anthropic results →

Pydantic had a 1.32x lower median cold end-to-end latency (393ms vs 519ms for Cloudflare).

Median cold end-to-end latency over time

15 runs from July 24, 2026 to October 30, 2026.

CloudflarePydantic
View the full Anthropic leaderboard →

OpenAI

Run October 30, 2026

Time for a cold request routed through the gateway to GPT-5.4 Mini to return its complete response.

Cold end-to-end latency

Cloudflare

100% success
Median
803ms
P95
1155ms
P99
1537ms
Cloudflare OpenAI results →

Pydantic

100% success
Median
681ms
P95
962ms
P99
1063ms
Pydantic OpenAI results →

Pydantic had a 1.18x lower median cold end-to-end latency (681ms vs 803ms for Cloudflare).

Median cold end-to-end latency over time

11 runs from August 21, 2026 to October 30, 2026.

CloudflarePydantic
View the full OpenAI leaderboard →

Methodology

  • One workload, every provider. The same script, payload, and model hit every provider, addressed the way its own API expects. Nobody gets a tuned or special path.
  • Repeated on a schedule. Every suite runs many iterations per provider, automated on a recurring schedule, so results reflect steady state rather than one lucky request.
  • Raw results published. Every run is committed as JSON to the public benchmarks repo, next to the code that produced it. Nothing is cherry-picked or held back.
  • How this comparison is built. Each benchmark compares the two providers' medians; results within 5% count as roughly even. A comparison is published only when both providers completed the latency benchmark on at least two of the same model families reliably: at least 50% success for each provider, in benchmark runs from the last 30 days.

Frequently asked questions

Have another question? Email us.

Pydantic was faster in both shared AI gateway benchmarks. In Anthropic (October 30, 2026), Pydantic had a median cold end-to-end latency of 393ms versus 519ms for Cloudflare, 1.32x faster. In OpenAI (October 30, 2026), Pydantic had a median cold end-to-end latency of 681ms versus 803ms for Cloudflare, 1.18x faster.

PartnersGoogle Cloud Run