Performance methodology
Maximum Efficiency. Minimum Unnecessary Overhead. This page describes a method. No measurement of the independent system has been published.
The steps
Section titled “The steps”- Measure a baseline. Record how the system behaves now, with the hardware, version and settings written down.
- Find the bottleneck. Look for the one thing that limits the result, instead of guessing.
- Change one thing. A single change can be judged. Several at once cannot.
- Measure again. Same test, same conditions, enough repetitions to see the spread.
- Keep, or undo. A change that does not help is removed, along with its complexity.
What will be studied
Section titled “What will be studied”| Topic | Why it matters |
|---|---|
| Memory allocation and caching | Memory should be ready when a program needs it and returned when it does not. Caches help only while the saved time is worth the memory they hold. |
| Scheduling and interrupt latency | The scheduler picks what runs next. Interrupts carry news from devices. The time between an event and the response is part of the delay a player feels. |
| Context-switch overhead | Moving the processor from one program to another has a cost. Fewer needless switches leave more time for the game. |
| Safe zero-copy operations | Passing data without copying it saves work, but only where memory protection still holds. Safety decides where it can be used. |
| Resource management | Background work should wait while a game needs the processor, memory or storage, and should still finish. |
| Reproducible measurement | A result counts when somebody else can repeat it. Method, raw data and conditions belong with every number. |
Reading a result
Section titled “Reading a result”- An average hides the worst moments. The spread matters as much as the middle.
- Low processor or memory use alone does not prove better performance.
- A result belongs to one version, one computer and one set of settings.
What a published result must include
Section titled “What a published result must include”- The exact version that was tested, and of any system it is compared with
- The exact hardware, driver versions and settings
- The method, and how many times the test was repeated
- What was running at the same time
- The spread of the results, including runs that went badly, not only the average
- The raw data, and how to repeat the test
A result without these is not published.