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

推荐订阅源

WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
月光博客
月光博客
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
U
Unit 42
腾讯CDC
爱范儿
爱范儿
J
Java Code Geeks
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
B
Blog
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

ashishb.net

A day in Luxembourg - the richest country in the world I was asked to install malware during a fake interview Book summary: Breakneck - China's quest to engineer the future by Dan Wang Book summary: How to Teach Your Baby to Read Book Summary: The Discontented Little Baby Book by Pamela Douglas Introducing Amazing Sandbox - run third-party tools and AI agents securely on your machine Why software outsourcing gets a bad reputation? Book summary: The Natural Baby Sleep Solution by Polly Moore A day in Antwerp, Belgium Journey of online influencers Two days in Brussels, Belgium Shortcuts - when we love them and when we don't A visit to Rakhigarhi Three days in overhyped Paris Empty Japan, crowded Tokyo The real lock-in in GitHub is not the code, but the stars 11-day Norwegian Breakaway East Caribbean cruise Sanskrit and Sri Lankan Air Force Use REST with Open API The Achilles heel of American capitalism Costa Rica in 4 days At a juice stall in Sri Lanka A short stay at Warsaw, Poland Best practices for using Python & uv inside Docker Two days in Vilnius, Lithuania How IntelliJ IDEs waste disk space Pregnancy Why there aren't many digital nomads from India Two days in Riga, Latvia To keep your machine secure, run third-party tools inside Docker
Speedup vs Slow-down
Ashish Bhatia · 2016-09-12 · via ashishb.net

If you are driving at a speed of 60 mph (or kmph, it won’t matter) from one city to another and return at 40 mph, then what would be your average speed?

It’s not 50, it would be 48 (See note 1). A slowdown of 20% cannot be countered with a speed-up of 20%, it takes a speed-up of 33% to counter a slowdown of 20% (See note 2). And that’s the most unintuitive things about slow-downs. In any aspect of life, once a slow-down has occurred, countering it is much harder without taking the risk of serious over-speeding and accidents. The alternative is to accept a lower final average speed.

Note:

  1. If one-way distance = x, then total time = x/60 + x/40
    Average speed = 2x/(x/60 + x/40) = 2 \* 60 \* 40 / (60 + 40) = 48
    The average speed is the Harmonic mean. As a further trivia, the harmonic mean of the two numbers is biased towards the smaller one.
    The geometric mean is biased towards the larger one (see, that’s why mutual funds love reporting performance in terms of geometric means). The arithmetic mean is dead in the center.
  2. If one-way distance = x, and the desired average speed is v, then the time of the first journey with 20% slowdown in x/(4v/5) = 5x/4v The total time of the journey is 2x/v
    Time of the return journey = 2x/v - 5x/4v = 3x/4v
    Average speed for the return journey = 4v/3 = 33% higher than the average speed.
  3. My Physics teacher in grade 9th taught me this unintuitive slowdown, and the result of it mesmerizes me to date.