One million trades, 34 curve bumps, 1,024 cores, about 5 seconds
We repriced a book of one million rates trades under 34 curve bumps on 64 cloud machines. That is 15.9 million prices. It took between 5.0 and 5.7 seconds, and the results are equal bit for bit to the same run on one workstation. This post says what was run, how, and what the numbers do and do not show.
What is being computed
The book has 1,000,000 trades, generated with a fixed seed from the mix of the example rates desk that ships with the Quantra platform:
| Product | Trades |
|---|---|
| Interest rate swaps (Euribor 6M, ESTR and SOFR overnight) | 836,361 |
| Swaptions (European and Bermudan) | 72,727 |
| Fixed rate bonds | 72,727 |
| Floating rate notes | 18,182 |
| Others (one CDS, one equity option, one inflation swap) | 3 |
998,671 of the trades have distinct terms. The market is four curves built from 34 quotes. The quotes are invented example values, not market data.

The fourth curve is a flat 1.2% dividend curve with 3 quotes, used by the one equity option.
A bump moves one quote up by 1 basis point and leaves the other 33 where they are. The curves are rebuilt from the bumped quotes and every trade that depends on a bumped curve is priced again. One bump per quote gives 34 scenarios. The difference between a bumped price and the base price is the sensitivity of that trade to that quote, so the full set is a per trade, per quote delta ladder for the whole book.
A USD swap does not depend on a EUR quote, so it is not repriced for that bump. That is why 34 bumps on one million trades are 15,945,465 prices and not 34 million.
How it runs
- Engine. The public engine image,
ghcr.io/joseprupi/quantra-server:0.17.5, unchanged. Pricing is QuantLib. Each machine runs 16 engine processes, one per core. - Portfolio. Stored in the engine's binary format: one block per trade and one block per market. A request is a market block plus up to 250 trade blocks. A bump overwrites one number in the market block. Nothing is rebuilt or re-serialized on the client side.
- Distribution. One Envoy proxy in front of the engine machines sends each request to the machine with the fewest requests in flight. A machine takes at most 17 requests at a time and refuses the rest; Envoy sends a refused request to another machine. Machines are added and removed by editing a list, with no restart.
- Machines. AWS, Ohio. Engine machines are
c7a.4xlarge(16 cores). Onec7a.16xlarge(64 cores) runs Envoy and the program that sends the requests.
The time measured is from the first request sent to the last answer received.
Results
Same book, same 34 bumps, 15.9 million prices:
| Engine machines | Engine cores | Runs (seconds) | Prices per second |
|---|---|---|---|
| 8 | 128 | 36.15, 36.33 | 0.44 million |
| 16 | 256 | 18.03, 18.16 | 0.88 million |
| 32 | 512 | 9.45, 9.73, 9.20 | 1.7 million |
| 64 | 1,024 | 5.55, 5.72, 5.00 | 2.9 million |

From 128 to 512 cores the time halves with each doubling (3.83 times faster on 4 times the cores). From 512 to 1,024 it is 1.75 times faster, not 2.
Other measurements from the same session:
- Valuation only (one million prices, no bumps): 0.86 s on 32 machines, 0.77 to 0.84 s on 64.
- Start up. 30 more machines were serving requests 2 minutes after they were requested. The next 32 took 1 minute 40 seconds.
- Errors. None in any run. Every machine took an even share of the work (within 3% at 32 machines).
- Cost. All machines existed for 18 minutes in total, about 10 USD at on demand prices. That is our estimate, not the invoice.
Same numbers as one workstation
The full output of a 64 machine run was downloaded and compared with the output of the same book priced on one workstation: 15,945,465 bumped prices and 1,000,000 base prices, compared byte by byte. None differ.
What limits it
At 512 cores the engines were 86 to 91% busy and the front machine used 10 of its 64 cores. The run is limited by the engines, which is the good case: more machines means less time.
At 1,024 cores the engines were 73 to 83% busy. The front machine was not full either (16 of 64 cores, about 16 Gbit/s sent on a 25 Gbit/s link), and more sender processes did not help. We did not find what holds it back at this size.
99% of the bytes sent are the trade blocks, sent again for every bump. A run sends 10.9 GB. A request that carries a list of bumps, so the trades travel once, would remove most of that. The engine does not have it yet.
The valuation alone does not get faster from 32 to 64 machines. A run that lasts under a second gives each machine only a handful of requests.
What this does not measure
- Getting the trades. The portfolio was already in binary form on the front machine. Reading trades from a database and converting them is not in these numbers.
- A faster pricer. The engine prices with QuantLib and does not make QuantLib faster. What is measured is the layer around it: stateless engine processes, a binary request format and a proxy, which together let the same pricing run on a thousand cores without changing a number.
- Real market data or a real book. Example quotes and generated trades.
- A machine failing at this size. We removed a machine in the middle of a run on 6 machines in an earlier test and the run finished with equal results. It was not repeated on 64.
- Repeatability over days. Two or three runs per size, one session.