惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
博客园 - 【当耐特】
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

Vercel News

Vercel Open Source Program: Winter 2026 cohort How Notion Workers run untrusted code at scale with Vercel Sandbox How we run Vercel's CDN in front of Discourse From idea to secure checkout in minutes with Stripe Building Slack agents can be easy Scaling redirects to infinity on Vercel Advancing Python typing Gamma builds design-first agents with Vercel How Avalara turns pipe dreams into patent-pending with v0 Keeping community human while scaling with agents How OpenEvidence built a healthcare AI that physicians actually trust Security boundaries in agentic architectures Skills Night: 69,000+ ways agents are getting smarter Video Generation with AI Gateway We Ralph Wiggumed WebStreams to make them 10x faster How Stably ships AI testing agents in hours, not weeks How we built AEO tracking for coding agents Anyone can build agents, but it takes a platform to run them Introducing Geist Pixel The Vercel AI Accelerator is back with $6m in credits Making agent-friendly pages with content negotiation The Vercel OSS Bug Bounty program is now available Introducing the new v0 Run untrusted code with Vercel Sandbox, now generally available How Stripe built a game-changing app in a single flight with v0 How Sensay went from zero to product in six weeks AGENTS.md outperforms skills in our agent evals Agent skills explained: An FAQ Testing if "bash is all you need" AWS databases are now live on the Vercel Marketplace and v0
Latency numbers every frontend developer should know - Ve...
Malte Ubl · 2024-04-23 · via Vercel News

3 min read

A frontend take on Jeff Dean's "Latency Numbers Every Programmer Should Know".

Web page load times and responsiveness to user action in web apps is a primary driver of user satisfaction–and both are often dominated by network latency.

Latency itself is a function of the user's connection to the internet (Wifi, LTE, 5G), how far away the server is that the user is connecting to, and the quality of the network in between.

While the latency numbers may seem low by themselves, they compound quickly. For example, a network waterfall of depth 3 on a 300ms link leads to a total latency of 900ms. Technologies like React Server Components can move network waterfalls to the server where the same request pattern might be 100 times as fast.

Metric

Estimate

Metric Impact

Wifi latency to internet

Wifi adds minimal latency to a connection. This can increase with a weak signal or older hardware.

1-4ms

TTFB, FCP, LCP

5G high-band (millimeter wave) latency to internet

Millimeter wave is the fastest deployed mobile technology. However, it is only practical to use in dense urban areas with a line of sight to the radio tower.

1-5ms

TTFB, FCP, LCP

User-space budget per frame for 60 frames per second

On a 60fps device, a frame is painted every 16ms. However, the device needs some time for the actual processing of the frame. The time here is the time available for your code to compute what should be painted.

5-10ms

Smooth framerate

5G mid-band latency to internet

This is the regular 5G latency. Experience may vary in case of bad signal or an overloaded tower.

10-30ms

TTFB, FCP, LCP

Round trip latency to a service or database in same cloud region

This is the latency to a different service that is deployed close to you without going to the internet.

10ms

TTFB, FCP, LCP

LTE latency to internet

Typical latency for LTE, aka 4G cellular networks.

15-50ms

TTFB, FCP, LCP

Frame-duration at 60 frames per second

60 frames per second is the most popular frame rate for display devices. However, some newer devices support higher frame rates like 90 or 120 fps.

16ms

Smooth frame rate

Round trip latency to other city on the same continent

This is the latency you can expect if you deploy to a region on the same continent as your user. It's calculated for a distance of 5000 kilometers, so the actual latency may be slightly higher or lower.

33ms

TTFB, FCP, LCP

Shortest duration of time perceived by humans as time having passed

When responding to user input, staying below this duration means that your user will perceive the response as instant. Citation

40-80ms

INP

Time to parse 1MB of CSS

Parsing CSS is part of the work the browser has to perform to render a web page.

100ms

FCP, LCP

Time to parse 1MB of HTML

Parsing HTML is part of the work the browser has to perform to render a web page. While it is often negligible for shorter web pages, it can become a major factor for very long articles.

120ms

FCP, LCP

3G latency to internet

3G is the slowest cellular standard in common use today.

150ms

TTFB, FCP, LCP

Round trip latency to other side of earth with a high quality network (cold potato routing)

This is the worst-case latency you should see if you deploy a service to a single region.

150ms

TTFB, FCP, LCP

Time to parse 1MB of JS

Parsing JavaScript can have a major impact on page load time as it often grows more quickly than CSS and JS. Code-splitting is the primary technique to minimize JS size.

150ms

FCP, LCP, INP

Duration of time perceived by humans as sluggish

When reacting to user input, a response slower than this value will be perceived as having to wait. 200ms is also the threshold for "Needs improvement" in INP.

200ms

INP

Round trip latency to other side of earth without leased fiber (hot potato routing)

When users directly connect to a faraway server or when using a low-cost CDN, then latencies for users may double from passing bytes through the cheapest path possible.

300ms

TTFB, FCP, LCP

Link to headingMethodology

Device-dependent numbers are measured with a 2023 high-end Android phone. Most laptops will be faster, iPhone will be faster, many other devices will be slower.

Link to headingCredit

Inspired by Jeff Dean's "Latency Numbers Every Programmer Should Know". For many more numbers like this one, see Napkin Math.