A newsletter about using napkin math and first-principle thinking to estimate systems performance fast, and without writing any code! However, on a good day posts will include code to test whether the napkin math lines up with reality. If it doesn’t, it’s the more cause for an interesting post.

What is the expected throughput of a single-threaded, in-memory data-store like Redis? — Issue 4

Is fsyncs per seconds and transactions per second for MySQL always the same? — Issue 10

What do you expect the response time for a query that visits 50 database pages with a 80% page cache hit rate to be? — Issue 2

With the napkin math reference numbers in hand and some reasonable assumptions (such as average log size or database record size) we should be able to arrive at an approximate answer!

This talk is the best primer on the topic.

I believe that first-principle thinking is required to break out of iterative improvement and make order of magnitude improvements.

If you’re interested in a workshop on napkin math for your team or company, I do 2-day napkin math workshops. On-site or remote. Reach out to simon@sirupsen.com.

See Archives

Subscribe through email, RSS or Twitter to new articles!

3,197 subscribers