Skip to content

Four agents, one test suite, the same moment

The one measurement the project publishes, with its method and its limits. Every number on this page comes from the README's Measured section.

Tests that failed on the first try
Through dotime-queue0 of 400in every run
Started directly400 of 400, in every run
Time until every agent had a green run
Through dotime-queue57 to 58 sin every run
Started directly373 s in one run; in the other two, some agents were still red after 8 runs (447 s and 469 s)
Suite runs
Through dotime-queue4one per agent
Started directly25 to 32
On this page

Results

Three runs each way, as published in the README.

The code under test never changes, so every failure comes from the busy computer.

The setup

  • On a Mac, 4 agents start the same test suite at the same moment.
  • Each suite runs 5 threads (100 timed tests) and holds 2 GB of memory.
  • The Mac has half as many cores as the 4 suites have busy threads, so started together they ask for twice the CPU there is.
  • Through the queue at most 2 suites run together: its default of 2 slots.
  • A test fails when it takes more than 1.6 times as long as when one suite runs by itself.
  • After a failure an agent waits 5 to 30 s (the same random waits both ways) and runs the suite again, up to 8 runs in all.

How to read it

The setup shows what doubling the load does. A looser timeout or a lighter load would narrow the gap. Started directly, every agent's first run failed, and the retries piled more load on the same machine; through the queue each agent ran its suite once.

Run it yourself

From a clone of the repository. It keeps every core busy for about half an hour, and uses a temporary state folder and repository:

Shell
git clone https://github.com/Moezat220/deployontime.gitcd deployontimenode bench/run.mjs

Run it on GitHub Actions

  1. Open Benchmark (manual) (opens in a new tab) in the repository's Actions tab.
  2. Press Run workflow. The inputs default to 3 rounds each way, 4 agents and 8 suite runs per agent.
  3. When it ends, download the artifact named benchmark-results.

It runs on GitHub's macOS runner, starts only by hand and is not one of the required checks. The runner is smaller than the Mac above, so the settings are scaled by the same rule: about twice as many busy threads as cores, and less memory per thread only if 400 MB would not fit in half the RAM. The runner's cores and memory are recorded in the results, and every run uploads all of them (the raw JSON, the full output and the queue journals) whatever they show.

Limits

The suite is a stand-in, not a real project, and your numbers will differ with your machine and your tests. It measures one thing: what the queue does when several agents start heavy work on one computer at once.

Code: bench/ (opens in a new tab) in the repository (run.mjs, suite.mjs, report.mjs).