Skip to content

Performance methodology

ReferenceNo release yetLast verified

Maximum Efficiency. Minimum Unnecessary Overhead. This page describes a method. No measurement of the independent system has been published.

  1. Measure a baseline. Record how the system behaves now, with the hardware, version and settings written down.
  2. Find the bottleneck. Look for the one thing that limits the result, instead of guessing.
  3. Change one thing. A single change can be judged. Several at once cannot.
  4. Measure again. Same test, same conditions, enough repetitions to see the spread.
  5. Keep, or undo. A change that does not help is removed, along with its complexity.
TopicWhy it matters
Memory allocation and cachingMemory 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 latencyThe 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 overheadMoving the processor from one program to another has a cost. Fewer needless switches leave more time for the game.
Safe zero-copy operationsPassing data without copying it saves work, but only where memory protection still holds. Safety decides where it can be used.
Resource managementBackground work should wait while a game needs the processor, memory or storage, and should still finish.
Reproducible measurementA result counts when somebody else can repeat it. Method, raw data and conditions belong with every number.
  • 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.
  • 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.