· 16 min read ·
One agent or ten? Measuring the time, cost and accuracy of splitting the work

Summary
Splitting work across parallel agents helps or hurts depending on the work. On 60 independent support messages, 10 workers cut the time from 9.9 to 3.6 seconds with the same accuracy, at 1.7 times the cost. On a 13-file code review whose parts depend on each other, splitting was not faster and lost half of the bugs that need two files read together: one agent found 8.4 of 10, split workers 4.8. With a contract digest shared with every worker it rose to 9.2-10, at 2.3 to 4 times the cost.
Everyone who works with AI agents gets the same idea at some point: if one agent does this in 20 seconds, ten agents should do it in 2. It is a familiar architecture pattern. A coordinator splits the work, workers run at the same time, the coordinator merges the results.
I wanted to measure what this pattern actually buys. I gave the same work to one agent, then to a coordinator with 3, 5 and 10 parallel workers, and recorded time, cost and accuracy. I did this for two kinds of work: a simple task whose parts are independent, and a complex one whose parts depend on each other.
All numbers come from the open source experiment. The code is .NET 10, the agents are Claude Haiku 5.5 and Claude Sonnet 5.5. Every Haiku setting ran 5 times, every Sonnet setting 3 times: 64 runs, 349 model calls and 0.92 USD in total.
How the experiment works
The architecture is the same for both tasks. The coordinator splits the work in order: if 13 files go to 3 workers, the first 5 files go to worker one, the next 4 to worker two. That is the split a coordinator makes when it knows nothing about the work. All workers are called at the same time. Time is measured from the coordinator’s start to the last answer.
Every answer is constrained to a JSON schema, so grading compares fields instead of interpreting free text.
Simple task: label 60 Turkish customer messages sent to an online shop. For each one: the category (refund, shipping, payment, account, product), the amount mentioned (“iki yüz lira”, two hundred lira, included) and whether it is urgent. Every message is independent; labelling one never needs another.
Complex task: review a 13-file, 476-line C# payment module. I planted 20 bugs in it. 10 can be seen in a single file: SQL injection, a card number written to the logs, an inverted check. The other 10 only show up when two files are read together. For example, the payment gateway expects an amount in kuruş and the checkout service sends lira. Each file looks correct on its own.
The answer key lives in the code: the faulty line ends with a marker like // #BUG:X1, and markers are stripped before a model sees the code. A finding counts when it is at most 3 lines from a marked line and names the cause. “This line truncates the decimals” does not count as the lira/kuruş bug, because it never says the gateway expects kuruş.
Independent work: parallelism paid off
This is the expected result, and the measurement confirms it. 10 workers cut the time from 9.9 to 3.6 seconds. Accuracy stayed between 97 and 98 percent. Here, merging is not a model call, it is appending lists, so the coordinator is plain code. Where code can do the merge, a model call only adds time and money.
The price is in cost. Every worker reads the same instructions. Input tokens went from 2,825 with one agent to 9,512 with 10 workers, and cost went up 1.7 times. At Haiku’s price that is 0.0026 USD per run, small enough to ignore. With a more expensive model and thousands of runs a day, it shows up on the bill.
One message did something interesting. “Adres defterime yeni adres ekleyemiyorum” (I cannot add a new address to my address book) was labelled “account” by one agent in 4 of 5 runs and by 3 and 5 workers in every run. With 10 workers it was labelled “shipping” in all 5 runs. That worker saw only 6 messages. Not seeing the others may have shifted a fine distinction. It is one message, but it is a reminder that even independent-looking work is not entirely free of context.
Dependent work: splitting lost bugs
The complex task tells a different story.
Single-file bugs did not change: every setting found between 9.2 and 10 of 10. The difference is in the cross-file bugs. One Haiku agent found 8.4 on average. Split across 3, 5 or 10 workers, it found 4.8 to 5.
Looking at the lost bugs one by one shows a pattern. Split workers never found three of them, in any run:
- The timeout is read from the key
Payments:Gateway:TimeoutSeconds, but the defined key isTimeoutMs. The worker reviewing the reading file never saw the settings file. - The discount rate is a fraction between 0 and 1 (0.15), but the percentage method expects a number between 0 and 100. 15% off becomes 0.15% off.
- The webhook compares the currency with
"TL", while the rest of the system uses the ISO code"TRY". Every webhook is silently dropped.
What the three have in common: finding them needs a concrete value from another file. There is no way to guess it.
On the other hand, some cross-file bugs were found even when split. Charge and refund use the same idempotency key, and the worker reviewing refunds guessed from experience that a key made only from the order id would collide with another operation. VAT added twice and declined cards being retried were found the same way. These are common mistakes, and names, comments and habits leave hints. A split worker loses context, but not its general knowledge.
Below you can see how the same module is split across 1, 3, 5 and 10 workers. Each line is a cross-file bug. A solid green line means both ends stay with one worker, a dashed copper line means the link is cut. The numbers below and the “found” rate next to each bug come from the measurement.
With 3 workers only one of the 10 bugs stays with a single worker; with 5 and 10, none. That could be computed before running anything. Running it showed how much of the cut links general knowledge makes up for: about half.
A shared contract rescued the split
In the second variant every worker also got a contract digest of the module next to its own files: the code with method bodies removed, keeping public declarations, constants, enum values and doc comments. Think of a microservice team sharing its API contract. The digest is 7,963 characters, the full code 21,456.
The result is the green bars in Figure 3. Cross-file bugs went from 4.8 to between 9.2 and 10. 10 workers with the digest found all 10 in every one of the 5 runs, better than the single agent’s 8.4.
I do not have a firm explanation for why it beats one agent. The single agent saw the same doc comments, since they are in the code. My guess: each worker looks at less code, and the contract is put in front of it as a separate section, so there is less to be distracted by. This experiment does not prove that.
The price is clear. Every worker reads the whole contract. With 10 workers, input tokens went to 5 times the single agent’s, and cost per run from 0.0028 to 0.0113 USD. Extra findings went from 0.4 to 6.2. Every worker tries to find something in its own part. Some of these are real bugs I did not plant, for example an order marked as paid without checking the payment result. Some are noise. All of them are in the results file. Either way, a person has to read that list.
The coordinator became the bottleneck
On the complex task parallelism did not shorten the time. One Haiku agent took 17.5 seconds, the split settings 15.7 to 20.1.
The workers really did get faster. 10 workers finished their part in about 7 seconds. But there is a sequential part too. The coordinator read all findings and removed duplicates, and that took 6 to 13 seconds. More workers means more findings, and a longer merge.
This is a known rule of parallel systems: the part that stays sequential caps the total speed-up (Amdahl’s law). Here, the sequential part is the coordinator itself.
The coordinator did not drop a single planted bug while merging. All it did was remove duplicates. Done in code, by file and line, the total would have been the workers’ time, about 7 seconds, at the cost of the report sometimes listing the same bug in two wordings. The architecture question is: am I giving the coordinator work that needs a model, or work that code could do?
One stronger agent
Finally I ran the same review with Sonnet 5.5. Alone, Sonnet finished in 12 seconds and found 9.7 of the 10 cross-file bugs, at 0.037 USD per run. That was the fastest of all measured settings.
Splitting Sonnet across 5 workers did the same thing: cross-file bugs dropped to 7, cost doubled, time went to 19 seconds. With the contract digest it went back to 9. So the context loss is not specific to the weaker model. The stronger model makes up for more of it with general knowledge, but it pays for the split too.
| Setting | Time | Cost per run | Cross-file bugs | Extra findings |
|---|---|---|---|---|
| Haiku, one agent | 17.5 s | 0.0028 $ | 8.4/10 | 0.4 |
| Haiku, 10 workers | 15.9 s | 0.0068 $ | 4.8/10 | 8.2 |
| Haiku, 10 workers + contract | 20.1 s | 0.0113 $ | 10/10 | 6.2 |
| Sonnet, one agent | 12.0 s | 0.0366 $ | 9.7/10 | 3.0 |
| Sonnet, 5 workers | 18.9 s | 0.0734 $ | 7.0/10 | 6.0 |
| Sonnet, 5 workers + contract | 19.3 s | 0.1074 $ | 9.0/10 | 3.3 |
When to split
The rules I take from this measurement:
1- Split when the work breaks into independent parts. Labelling messages, summarising documents, classifying records: parallelism makes it faster without hurting accuracy. The extra cost comes from re-reading instructions; short instructions keep it down.
2- When the parts depend on each other, count what you lose before you cut. A split in order cuts most links. The concrete fact behind a cut link (a key name, a unit, a code) cannot be guessed from general knowledge.
3- If you split, share the contract. A short digest telling each worker what the other parts expect brought back almost every lost bug. It is the same job an API contract does for human teams.
4- Keep the coordinator’s sequential work small. If the merge is a model call, it can eat the whole parallel gain. Merges that code can do should be done in code.
5- Try one stronger agent first. In this experiment the fastest and least noisy result was Sonnet on its own. Ten cheap workers were cheaper, but slower and noisier.
Limits
This is one codebase with 20 planted bugs. Real bugs are not spread this neatly. The module is 476 lines and fits easily in one model’s context. In large codebases that do not fit, splitting is a necessity, not a choice, and the results may differ.
Every Haiku setting ran 5 times, every Sonnet setting 3 times. That is enough to show a direction, but small differences (say 9.2 against 9.6) should not be read as meaningful. Times depend on the API’s load at the moment. Both models ran at effort medium.
Grading is automatic, by line and keyword. I read by hand the findings close to a bug’s line that were not credited. For three bugs the model described the bug correctly but pointed at another line where the fix could also go (for example the line that calls the retry). I added those lines to the answer key as valid sites and regraded every run. The code the models saw did not change. I did not sort extra findings into real bugs and noise; all of them can be read in the results file. One message’s label is debatable: I labelled “Kargo ücreti neden 49,90 TL?” (why is shipping 49.90 TL?) as “shipping”, the model said “payment” in 19 of 20 runs. Most of the 2 percent error on the simple task is that message.
I built the code and the measurements with Claude Code. The whole experiment can be run again with one command from the repository, where every answer and token count is stored. What do you use parallel agents for?
FAQ
- When do parallel agents help?
- When the work splits into independent parts. In the measurement, splitting 60 support messages across 10 workers made it 2.7 times faster and accuracy stayed between 97 and 98 percent. When the parts depend on each other, for example when one file is only correct given another, splitting loses important information between workers.
- Why was the complex task not faster at all?
- Because the coordinator that merges the results is also a model call, and it runs after the workers. 10 workers finished their part in 7 seconds, but the merge took 9 to 13 seconds. The total never got below the single agent's 17.5 seconds by much.
- What is the contract digest?
- The module with its method bodies removed. Public declarations, constants, enum values and doc comments stay. With it, every worker knows things like "the other side expects kuruş" or "the rate is between 0 and 1". In this experiment it raised cross-file bugs found from 4.8 to between 9.2 and 10.
- Is one stronger agent better?
- In this experiment, yes. Sonnet 5.5 alone found 9.7 of the 10 cross-file bugs in 12 seconds, at 0.037 USD per run. Haiku 5.5 with 10 workers and the contract digest found all 10, but took 20 seconds, cost 0.011 USD and produced 6.2 extra findings. Which one to choose depends on whether time, cost or noise matters most.
- Would a larger codebase give the same result?
- Unknown. This module is 476 lines and fits comfortably in one model's context. When the code does not fit, splitting is no longer a choice. What this experiment shows still applies then: give workers the contract, what each part expects from the others.
Comments
No comments yet. Be the first to write one.