SShortSingh.
Back to feed

TTFB and TTFT Measure Different Things — Mixing Them Distorts AI API Rankings

0
·1 views

A developer running llmlatency.dev has published findings from continuous latency measurements across roughly 45 AI inference providers, tested from four global regions including Germany, the US, Tokyo, and São Paulo. The analysis draws a sharp distinction between TTFB (time to first byte), which reflects network and infrastructure speed before any model is involved, and TTFT (time to first token), which also includes provider queueing and model prefill time. Data shows that network latency accounts for only 3–33% of total time to first token, meaning the bulk of what most benchmarks measure is actually model behavior rather than API performance. The study also highlights that regional variation can be dramatic, with one provider showing an 18.9x difference in TTFB depending on the continent a request originates from. The author cautions that leaderboards comparing TTFT across providers without disclosing the underlying models are effectively ranking models against each other, not the APIs themselves.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

AGI-64 Port Lets Commodore 64 Run Classic Sierra Adventure Games

A project called AGI-64 has been developed to bring Sierra On-Line adventure games to the Commodore 64 platform. Sierra's Adventure Game Interpreter (AGI) engine originally powered classic titles such as King's Quest and Space Quest on PC systems. AGI-64 is an implementation of that engine tailored for the Commodore 64's hardware capabilities. The project allows retro computing enthusiasts to experience these classic Sierra titles on vintage C64 hardware. Further technical details and coverage are available via the Mean Hamster software blog.

0
ProgrammingDEV Community ·

Event-driven architecture helps AI agents handle real-world production failures

AI agent systems that rely on long synchronous chains are prone to failure when steps are slow, services restart, or human approvals are needed. An event-driven architecture addresses this by letting agents publish facts to an event bus, allowing other components to react independently without being directly wired together. This decoupling means a temporarily unavailable service can still process events once it recovers, and workflows are not lost when a restart occurs. Distinguishing between events, which record facts, and commands, which request actions, is key to keeping such systems predictable and auditable. Standards like CloudEvents can provide a common metadata envelope when events cross team or platform boundaries.

0
ProgrammingDEV Community ·

Developer builds fully browser-based bubble text generator using SVG and Canvas

A developer built a browser-only text-art generator using Next.js, SVG, and Canvas that requires no server, accounts, or file uploads. The tool accepts short phrases and applies one of three font styles across eight visual finishes, including glossy, holographic, chrome, and neon. To ensure consistent rendering across devices, font files are bundled with the app and embedded directly into generated SVGs using base64-encoded data URLs. Text dimensions are calculated using CanvasRenderingContext2D.measureText rather than character count, ensuring accurate layout regardless of font width variation. The pipeline converts React-controlled inputs into a cropped, watermark-free PNG entirely within the browser.

0
ProgrammingDEV Community ·

Developer Builds Angular 20 Pet Management App with Google Gemini AI Integration

A developer created Pet-Wallet, a browser-based pet management app built with Angular 20 that lets users add, edit, and track pets along with their medications and daily care tasks. The app uses Google Gemini AI to extract pet details from uploaded PDF documents, helping users quickly populate new pet profiles. Because the project is a front-end-only application, users must supply their own Gemini API key to use the AI import feature, as the developer chose not to expose credentials in a public repository. Pet-Wallet stores all data locally in the browser and is deployed via GitHub Pages with automated deployments through GitHub Actions. The project was submitted as part of a DEV Community weekend coding challenge and marks the developer's first post on the platform.

TTFB and TTFT Measure Different Things — Mixing Them Distorts AI API Rankings · ShortSingh