---
title: "Meaning & Key Takeaway of: Rule 1. You can't tell where a program is…"
description: "\"Rule 1. You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a sp..."
image: "https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg"
---

#  Rule 1. You can't tell where a program is going to spend…

![“Rule 1. You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is” quote by Rob Pike](https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg)   [Download](https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg) [Open image](https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg)

> “Rule 1. You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is”

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Performance issues often arise where you least expect, so profiling before optimizing is essential.

**In simple terms:** Find real bottlenecks before adding speed hacks.

Key Takeaway

Profile first, optimize later.

Themes

performance optimization profiling

Mood

analytical pragmatic

Type

technical advisory

When to use this quote

- software development
- debugging
- resource management

Key Concepts

software engineering systems design

Questions to Reflect On

- What tools can you use to locate bottlenecks?
- How do you decide when a speed hack is justified?

A Different Perspective

Optimizations without data can waste time and hurt maintainability.

★ ★ ★ ★ ★   No ratings yet

[Bottleneck](https://sms4smile.com/quotes/about/bottleneck/) [Bottlenecks](https://sms4smile.com/quotes/about/bottlenecks/) [Hacks](https://sms4smile.com/quotes/about/hacks/) [Programming](https://sms4smile.com/quotes/about/programming/) [Speed](https://sms4smile.com/quotes/about/speed/) [Technology](https://sms4smile.com/quotes/about/technology/) [Time](https://sms4smile.com/quotes/about/time/)

## Related quotes

> [PHP is rarely the bottleneck.](https://sms4smile.com/quotes/rasmus-lerdorf/php-is-rarely-the-bottleneck/)

[Rasmus Lerdorf](https://sms4smile.com/quotes/author/rasmus-lerdorf/)

> [An hour saved at the non-bottleneck is a mirage.](https://sms4smile.com/quotes/eliyahu-m-goldratt/an-hour-saved-at-the-non-bottleneck-is-a-mirage/)

[Eliyahu M. Goldratt](https://sms4smile.com/quotes/author/eliyahu-m-goldratt/)

> [Top-down approaches do not work. The bottleneck is at the top of the bottle.](https://sms4smile.com/quotes/iqbal-quadir/top-down-approaches-do-not-work-the-bottleneck-is-at-the-top-of-the/)

[Iqbal Quadir](https://sms4smile.com/quotes/author/iqbal-quadir/)

> [To manipulate the immune system, you need to find the key bottlenecks that govern the system. The T-cell is an absolute bottleneck.](https://sms4smile.com/quotes/leroy-hood/to-manipulate-the-immune-system-you-need-to-find-the-key-bottlenecks/)

[Leroy Hood](https://sms4smile.com/quotes/author/leroy-hood/)

> [I say an hour lost at a bottleneck is an hour out of the entire system. I say an hour saved at a non-bottleneck…](https://sms4smile.com/quotes/eliyahu-m-goldratt/i-say-an-hour-lost-at-a-bottleneck-is-an-hour-out-of-the-entire/)

[Eliyahu M. Goldratt](https://sms4smile.com/quotes/author/eliyahu-m-goldratt/)

> [The bottleneck wasn't, How do we make pixels prettier? It was, How do we engage with them more?](https://sms4smile.com/quotes/jefferson-han/the-bottleneck-wasn-t-how-do-we-make-pixels-prettier-it-was-how-do-we/)

[Jefferson Han](https://sms4smile.com/quotes/author/jefferson-han/)

> [In most organizations, the bottleneck is at the top of the bottle.](https://sms4smile.com/quotes/peter-drucker/in-most-organizations-the-bottleneck-is-at-the-top-of-the-bottle/)

[Peter Drucker](https://sms4smile.com/quotes/author/peter-drucker/)

> [The whole world is pretending the breakthrough is in technology. The bottleneck is really in art.](https://sms4smile.com/quotes/penn-jillette/the-whole-world-is-pretending-the-breakthrough-is-in-technology-the/)

[Penn Jillette](https://sms4smile.com/quotes/author/penn-jillette/)

> [If you’re concerned about scalability, any algorithm that forces you to run agreement will eventually become your bottleneck. Take that as a given.](https://sms4smile.com/quotes/werner-vogels/if-you-re-concerned-about-scalability-any-algorithm-that-forces-you/)

[Werner Vogels](https://sms4smile.com/quotes/author/werner-vogels/)

> [Nobody taught me to play bottleneck. I just saw it and taught myself. I got an old bottle and steamed the label off, put…](https://sms4smile.com/quotes/bonnie-raitt/nobody-taught-me-to-play-bottleneck-i-just-saw-it-and-taught-myself-i/)

[Bonnie Raitt](https://sms4smile.com/quotes/author/bonnie-raitt/)

> [“Goldratt taught us that in most plants, there are a very small number of resources, whether it’s men, machines, or materials, that dictates the…](https://sms4smile.com/quotes/gene-kim/goldratt-taught-us-that-in-most-plants-there-are-a-very-small-number/)

[Gene Kim](https://sms4smile.com/quotes/author/gene-kim/)

> [“Our minds have a bottleneck in the so-called “working memory” that allows us to keep only a few simple things in them at any…](https://sms4smile.com/quotes/mark-williams/our-minds-have-a-bottleneck-in-the-so-called-working-memory-that/)

[Mark Williams](https://sms4smile.com/quotes/author/mark-williams/)

> [“The entire bottleneck concept is not geared to decrease operating expense, it’s focused on increasing throughput.”](https://sms4smile.com/quotes/eliyahu-m-goldratt/the-entire-bottleneck-concept-is-not-geared-to-decrease-operating/)

[Eliyahu M. Goldratt](https://sms4smile.com/quotes/author/eliyahu-m-goldratt/)

> [Don't be a bottleneck. If a matter is not a decision for the President or you, delegate it. Force responsibility down and out. Find…](https://sms4smile.com/quotes/donald-rumsfeld/don-t-be-a-bottleneck-if-a-matter-is-not-a-decision-for-the-president/)

[Donald Rumsfeld](https://sms4smile.com/quotes/author/donald-rumsfeld/)

> [As a company grows, things get stuck at the top. It can be a bottleneck.](https://sms4smile.com/quotes/belinda-johnson/as-a-company-grows-things-get-stuck-at-the-top-it-can-be-a-bottleneck/)

[Belinda Johnson](https://sms4smile.com/quotes/author/belinda-johnson/)

## More by Rob Pike

> [Eventually, I decided that thinking was not getting me very far and it was time to try building.](https://sms4smile.com/quotes/rob-pike/eventually-i-decided-that-thinking-was-not-getting-me-very-far-and-it/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Productivity is most important by engineering management rules, but enjoyment is most important for engineers. One stems from the other.](https://sms4smile.com/quotes/rob-pike/productivity-is-most-important-by-engineering-management-rules-but/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [When there is no type hierarchy you don't have to manage the type hierarchy.](https://sms4smile.com/quotes/rob-pike/when-there-is-no-type-hierarchy-you-don-t-have-to-manage-the-type/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Not only is UNIX dead, it's starting to smell really bad.](https://sms4smile.com/quotes/rob-pike/not-only-is-unix-dead-it-s-starting-to-smell-really-bad/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Procedure names should reflect what they do; function names should reflect what they return](https://sms4smile.com/quotes/rob-pike/procedure-names-should-reflect-what-they-do-function-names-should/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Why would you have a language that is not theoretically exciting? Because it's very useful.](https://sms4smile.com/quotes/rob-pike/why-would-you-have-a-language-that-is-not-theoretically-exciting/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [If POSIX threads are a good thing, perhaps I don't want to know what they're better than.](https://sms4smile.com/quotes/rob-pike/if-posix-threads-are-a-good-thing-perhaps-i-don-t-want-to-know-what/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Such is modern computing: everything simple is made too complicated because it's easy to fiddle with; everything complicated stays complicated because it's hard to…](https://sms4smile.com/quotes/rob-pike/such-is-modern-computing-everything-simple-is-made-too-complicated/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Narrowness of experience leads to narrowness of imagination](https://sms4smile.com/quotes/rob-pike/narrowness-of-experience-leads-to-narrowness-of-imagination/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [A smart terminal is not a smartass terminal, but rather a terminal you can educate.](https://sms4smile.com/quotes/rob-pike/a-smart-terminal-is-not-a-smartass-terminal-but-rather-a-terminal-you/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Caches aren't architecture, they're just optimization.](https://sms4smile.com/quotes/rob-pike/caches-aren-t-architecture-they-re-just-optimization/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Languages that try to disallow idiocy become themselves idiotic.](https://sms4smile.com/quotes/rob-pike/languages-that-try-to-disallow-idiocy-become-themselves-idiotic/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [Using Unix is the computing equivalent of listening only to music by David Cassidy.](https://sms4smile.com/quotes/rob-pike/using-unix-is-the-computing-equivalent-of-listening-only-to-music-by/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [There's no such thing as a simple cache bug.](https://sms4smile.com/quotes/rob-pike/there-s-no-such-thing-as-a-simple-cache-bug/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

> [There's nothing in computing that can't be broken by another level of indirection.](https://sms4smile.com/quotes/rob-pike/there-s-nothing-in-computing-that-can-t-be-broken-by-another-level-of/)

[Rob Pike](https://sms4smile.com/quotes/author/rob-pike/)

[Explore all 19 Rob Pike quotes ](https://sms4smile.com/quotes/author/rob-pike/)

## More Bottleneck quotes

> [As a company grows, things get stuck at the top. It can be a bottleneck.](https://sms4smile.com/quotes/belinda-johnson/as-a-company-grows-things-get-stuck-at-the-top-it-can-be-a-bottleneck/)

[Belinda Johnson](https://sms4smile.com/quotes/author/belinda-johnson/)

> [Don't be a bottleneck. If a matter is not a decision for the President or you, delegate it. Force responsibility down and out. Find…](https://sms4smile.com/quotes/donald-rumsfeld/don-t-be-a-bottleneck-if-a-matter-is-not-a-decision-for-the-president/)

[Donald Rumsfeld](https://sms4smile.com/quotes/author/donald-rumsfeld/)

> [“The entire bottleneck concept is not geared to decrease operating expense, it’s focused on increasing throughput.”](https://sms4smile.com/quotes/eliyahu-m-goldratt/the-entire-bottleneck-concept-is-not-geared-to-decrease-operating/)

[Eliyahu M. Goldratt](https://sms4smile.com/quotes/author/eliyahu-m-goldratt/)

> [To manipulate the immune system, you need to find the key bottlenecks that govern the system. The T-cell is an absolute bottleneck.](https://sms4smile.com/quotes/leroy-hood/to-manipulate-the-immune-system-you-need-to-find-the-key-bottlenecks/)

[Leroy Hood](https://sms4smile.com/quotes/author/leroy-hood/)

> [I say an hour lost at a bottleneck is an hour out of the entire system. I say an hour saved at a non-bottleneck…](https://sms4smile.com/quotes/eliyahu-m-goldratt/i-say-an-hour-lost-at-a-bottleneck-is-an-hour-out-of-the-entire/)

[Eliyahu M. Goldratt](https://sms4smile.com/quotes/author/eliyahu-m-goldratt/)

> [The bottleneck wasn't, How do we make pixels prettier? It was, How do we engage with them more?](https://sms4smile.com/quotes/jefferson-han/the-bottleneck-wasn-t-how-do-we-make-pixels-prettier-it-was-how-do-we/)

[Jefferson Han](https://sms4smile.com/quotes/author/jefferson-han/)

> [“Our minds have a bottleneck in the so-called “working memory” that allows us to keep only a few simple things in them at any…](https://sms4smile.com/quotes/mark-williams/our-minds-have-a-bottleneck-in-the-so-called-working-memory-that/)

[Mark Williams](https://sms4smile.com/quotes/author/mark-williams/)

> [“Goldratt taught us that in most plants, there are a very small number of resources, whether it’s men, machines, or materials, that dictates the…](https://sms4smile.com/quotes/gene-kim/goldratt-taught-us-that-in-most-plants-there-are-a-very-small-number/)

[Gene Kim](https://sms4smile.com/quotes/author/gene-kim/)

> [If you’re concerned about scalability, any algorithm that forces you to run agreement will eventually become your bottleneck. Take that as a given.](https://sms4smile.com/quotes/werner-vogels/if-you-re-concerned-about-scalability-any-algorithm-that-forces-you/)

[Werner Vogels](https://sms4smile.com/quotes/author/werner-vogels/)

> [Nobody taught me to play bottleneck. I just saw it and taught myself. I got an old bottle and steamed the label off, put…](https://sms4smile.com/quotes/bonnie-raitt/nobody-taught-me-to-play-bottleneck-i-just-saw-it-and-taught-myself-i/)

[Bonnie Raitt](https://sms4smile.com/quotes/author/bonnie-raitt/)

> [The whole world is pretending the breakthrough is in technology. The bottleneck is really in art.](https://sms4smile.com/quotes/penn-jillette/the-whole-world-is-pretending-the-breakthrough-is-in-technology-the/)

[Penn Jillette](https://sms4smile.com/quotes/author/penn-jillette/)

> [I stone got crazy when I saw somebody run down them strings with a bottleneck. My eyes lit up like a Christmas tree and…](https://sms4smile.com/quotes/muddy-waters/i-stone-got-crazy-when-i-saw-somebody-run-down-them-strings-with-a/)

[Muddy Waters](https://sms4smile.com/quotes/author/muddy-waters/)

> [The bottleneck is never code or creativity; it's lack of clarity.](https://sms4smile.com/quotes/scott-berkun/the-bottleneck-is-never-code-or-creativity-it-s-lack-of-clarity/)

[Scott Berkun](https://sms4smile.com/quotes/author/scott-berkun/)

> [In most organizations, the bottleneck is at the top of the bottle.](https://sms4smile.com/quotes/peter-drucker/in-most-organizations-the-bottleneck-is-at-the-top-of-the-bottle/)

[Peter Drucker](https://sms4smile.com/quotes/author/peter-drucker/)

> [“Overwhelmed? Delegate. For perfectionists of the world, this is often a challenge. While you may think only you can do it best, you are…](https://sms4smile.com/quotes/lisa-mininni/overwhelmed-delegate-for-perfectionists-of-the-world-this-is-often-a/)

[Lisa Mininni](https://sms4smile.com/quotes/author/lisa-mininni/)

[Browse all 21 Bottleneck quotes ](https://sms4smile.com/quotes/about/bottleneck/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Rule 1. You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don't try to second guess and put in a speed hack until you've proven that's where the bottleneck is",
            "creator": {
                "@type": "Person",
                "name": "Rob Pike"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/rob-pike/rule-1-you-can-t-tell-where-a-program-is-going-to-spend-its-time/",
            "about": {
                "@type": "Thing",
                "name": "Bottleneck"
            },
            "@id": "https://sms4smile.com/quotes/rob-pike/rule-1-you-can-t-tell-where-a-program-is-going-to-spend-its-time/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg",
                "contentUrl": "https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg",
                "url": "https://sms4smile.com/quotes/i/2b4/rob-pike-28260_bottlenecks_rule-1-you-can-t-tell-where-a-program-is_2226642.jpg",
                "width": 1080,
                "height": 1080,
                "caption": "“Rule 1. You can't tell where a program is going to spend its time. Bottlenecks occur in surprising places…” — Rob Pike",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Rob Pike",
                    "item": "https://sms4smile.com/quotes/author/rob-pike/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "Rule 1. You can't tell where...",
                    "item": "https://sms4smile.com/quotes/rob-pike/rule-1-you-can-t-tell-where-a-program-is-going-to-spend-its-time/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/rob-pike/rule-1-you-can-t-tell-where-a-program-is-going-to-spend-its-time/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
