<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Performance on CS Theorems</title><link>https://cs.lozic.me/areas/performance/</link><description>Recent content in Performance on CS Theorems</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 17 Dec 2027 12:00:00 +0100</lastBuildDate><atom:link href="https://cs.lozic.me/areas/performance/index.xml" rel="self" type="application/rss+xml"/><item><title>Work Stealing and Fair Scheduling</title><link>https://cs.lozic.me/posts/t109-work-stealing-and-fair-scheduling/</link><pubDate>Fri, 17 Dec 2027 12:00:00 +0100</pubDate><guid>https://cs.lozic.me/posts/t109-work-stealing-and-fair-scheduling/</guid><description>&lt;h2 id="symptom"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;You parallelize a recursive algorithm. Quicksort, or a tree traversal, or a
divide-and-conquer numeric kernel. You have 16 cores and a central task queue,
and you measure a speedup of 3.&lt;/p&gt;</description></item><item><title>Balls Into Bins and the Power of Two Choices</title><link>https://cs.lozic.me/posts/t009-balls-into-bins/</link><pubDate>Fri, 12 Feb 2027 12:00:00 +0100</pubDate><guid>https://cs.lozic.me/posts/t009-balls-into-bins/</guid><description>&lt;h2 id="symptom"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;You have 100 backends and a load balancer hashing request IDs to pick one.
Expected load per backend is exactly 1%, and you have checked the hash is good.&lt;/p&gt;</description></item><item><title>Gustafson's Law and the Universal Scalability Law</title><link>https://cs.lozic.me/posts/t082-gustafsons-law-and-the-usl/</link><pubDate>Fri, 25 Sep 2026 12:00:00 +0200</pubDate><guid>https://cs.lozic.me/posts/t082-gustafsons-law-and-the-usl/</guid><description>&lt;h2 id="symptom"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;Two measurements that both look like they break the previous post.&lt;/p&gt;
&lt;p&gt;The first: your Spark job takes four hours on ten nodes. You move it to a
hundred nodes and it still takes four hours — but it is now processing ten times
the data. &lt;a href="https://cs.lozic.me/posts/t081-amdahls-law/"&gt;T081&lt;/a&gt; said the ceiling was
20×, and nobody hit a ceiling.&lt;/p&gt;</description></item><item><title>Amdahl's Law</title><link>https://cs.lozic.me/posts/t081-amdahls-law/</link><pubDate>Fri, 18 Sep 2026 12:00:00 +0200</pubDate><guid>https://cs.lozic.me/posts/t081-amdahls-law/</guid><description>&lt;h2 id="symptom"&gt;Symptom&lt;/h2&gt;
&lt;p&gt;The profile was unambiguous: 94% of wall-clock time in one loop, and the loop&amp;rsquo;s
iterations are independent. You parallelise it across sixteen cores, the flame
graph flattens exactly as predicted, and the end-to-end time goes from 40
seconds to 17.&lt;/p&gt;</description></item></channel></rss>