Excel API Response Time: What We Measured and Where the Time Goes

Excel API response time, measured on a real workbook

Numbers about Excel API performance are easy to write and hard to check. This post reports what we measured on 13 November 2026 against one published SpreadAPI service, names the method, and explains where the time of a call goes.

The short version: for this workbook the calculation took a median of 16 ms, the server needed 19 ms in total, and the caller waited 97 ms for the answer. Most of a call's time was network and request handling, not the calculation.

What was measured, and how

  • The service: the public demo quote calculator behind the SpreadAPI homepage. Its workbook has four sheets, a two-dimensional price lookup, XLOOKUP tables and spilled dynamic-array formulas.
  • The environment: production, on 13 November 2026. The client ran in Germany, the server region is Frankfurt.
  • The method: 50 calls per case over one HTTPS connection that was kept open, unless a case says otherwise.
  • Two clocks: the server reports its own times in every answer (metadata.executionTime and metadata.totalTime). The client measured the whole round trip, from sending the request to receiving the answer.

Median means half of the calls were faster. p90 means nine out of ten calls were faster.

The measured numbers

A real calculation on every call

Every call had new inputs and carried nocache=true, so no stored result was used and the workbook calculated each time.

  • Calculation time reported by the server: median 16 ms, p90 19 ms
  • Total time on the server: median 19 ms, p90 23 ms, slowest call 27 ms
  • Round trip at the client: median 97 ms, p90 153 ms, fastest call 79 ms

Identical inputs, answered from the stored result

The same inputs on every call, without nocache. The answers came from the stored result.

  • Total time on the server: median 5 ms, p90 6 ms
  • Round trip at the client: median 81 ms, p90 139 ms, fastest call 60 ms

The first call after a pause

One call after the service had not been called for a while: 41 ms on the server and 213 ms for the round trip. Of those 213 ms, 86 ms went into setting up the connection and TLS.

A new connection for every call

Plain curl in a loop opens a new connection each time. Over 30 calls the round trip had a median of 184 ms for a calculated answer and 167 ms for a stored result.

Three kinds of request over the same connection

For comparison, over the same kept-open connection:

  • A static file from the edge: median 32 ms
  • A trivial function that calculates nothing: median 54 ms
  • A calculation call: median 87 to 97 ms

Where the time goes

Put the medians of the calculated case next to each other:

One calculated call (medians)

calculation          16 ms
server, in total     19 ms
round trip, client   97 ms

The difference between the two last lines, about 78 ms, is not spent in the workbook. A call has three parts:

  • Connection set-up. Before the first request, client and server set up a connection and TLS. In the measurement this took 86 ms on the first call. A client that opens a new connection for every call pays it every time: 184 ms instead of 97 ms.
  • Network and request handling. The request travels to the server, is received and answered, and the answer travels back. Even a static file took 32 ms over the open connection, and a function that calculates nothing took 54 ms.
  • The calculation. The input values are written into the workbook, the workbook calculates, the outputs are read. For this workbook that was 16 ms.

So for this workbook, tuning formulas would change little. The connection and the distance decide most of what a caller sees.

What warm means

A service answers fastest while its workbook is loaded. The help centre puts it like this: the first call after publishing, or after the service was not used for a while, takes longer because the workbook has to be loaded. The calls after it reuse the loaded workbook.

All numbers above except one are warm numbers. The exception is the first call after a pause, with 41 ms on the server instead of a median of 19 ms.

Two details from the help article Caching and performance: opening the Test view under API in the app prepares the service, so a test call there is usually quick already. And large workbooks take longer to load than small ones.

The stored result for identical inputs

When a call has exactly the same inputs as an earlier call, SpreadAPI returns the stored answer instead of calculating again. A stored result is used for up to 15 minutes, and republishing drops the stored results of the old version. Such an answer carries cached: true in metadata.

nocache=true skips the stored result and calculates again. On GET it is part of the address, on POST a field of the body next to inputs.

In the measurement the stored result brought the server time from 19 ms down to 5 ms. The round trip went from 97 ms to 81 ms. The stored result saves the calculation, the way to the server stays the same.

One thing to know: a stored result repeats the earlier answer. That is right for a workbook whose outputs depend only on the inputs. If yours uses NOW, TODAY or RAND, read the section on workbooks that change by themselves in Caching and performance.

Reading the times in metadata

Every answer says how it was made:

"metadata": {
  "executionTime": 12,
  "totalTime": 15,
  "timestamp": "2026-11-13T09:00:00.000Z",
  "version": "v1"
}
  • executionTime is the calculation time in milliseconds.
  • totalTime is the total time on the server in milliseconds.
  • cached: true appears when the answer came from a stored result.

Read them together with the time your own client measures:

  • A high executionTime points at the workbook.
  • A low totalTime with a long wait at the client points at the connection or the distance.
  • A slow first call followed by fast ones is the workbook being loaded.

All fields are described in The API response.

What a caller can do

Keep the connection open

This had the largest effect in the measurement: 97 ms over a kept-open connection against 184 ms with a new connection per call. Use HTTP keep-alive, which in practice means creating one HTTP client and reusing it for all calls instead of creating a new one per call.

Send many calculations as one batch

If you need many results at once, send them in one request. The batch address takes up to 100 input sets and returns all results in one answer:

POST https://spreadapi.io/api/v1/services/{serviceId}/batch

The whole batch must finish within 30 seconds, and each successful calculation counts as one call. We did not measure batch calls for this post. The details are in Batch calls.

Call from a server close to the service

The measured service runs in the Frankfurt region, and the client was in Germany. From farther away the round trip takes longer, because the network part grows. The server times in metadata stay the same.

Let the stored result do its work

Send nocache=true only where a fresh calculation is needed. And if your application asks for the same inputs again within a short time, reuse the result on your side and skip the call.

Keep outputs and workbook lean

These come from the help centre, not from our measurement:

  • Define only the outputs the client needs. A large cell range as an output makes every answer larger.
  • Workbooks with very many formulas or very large lookup tables take longer to calculate. Remove calculations no output depends on.
  • Point XLOOKUP or INDEX with MATCH at the range that holds the data rather than at whole columns.

More in Tips for structuring a workbook.

Measure it yourself

Replace {serviceId} with the ID of your service and the inputs with your own. curl prints its timing with -w:

curl -s -o /dev/null \
  -w "connect %{time_connect}s
tls %{time_appconnect}s
total %{time_total}s\n" \
  "https://spreadapi.io/api/v1/services/{serviceId}/execute?amount=20000&rate=0.05"

time_appconnect is the moment the TLS set-up was finished, time_total the whole round trip.

The server's own times are in the JSON. With jq installed:

curl -s "https://spreadapi.io/api/v1/services/{serviceId}/execute?amount=20000&rate=0.05" \
  | jq .metadata

Run it twice with the same inputs and the second answer shows "cached": true. Add &nocache=true to the address to see a real calculation each time.

To see what a kept-open connection is worth, give curl the address twice in one command, with the same -w and one -o /dev/null per address. The second request reuses the connection and reports 0 for time_connect.

A token-protected service needs its token with every call, see Call a service over the API.

What these numbers do not say

They are measurements of one workbook, on one day, from one place.

  • A large workbook with thousands of formulas takes longer to calculate than this quote calculator.
  • The round trip depends on the distance to Frankfurt and on your network.
  • The first call after a pause is slower than the ones after it.

The reliable number for your service is the one you measure yourself, with your workbook and from the place your calls come from.

FAQ

What Excel API response time can I expect from SpreadAPI?

For the demo quote calculator we measured a median of 19 ms on the server and 97 ms for the whole round trip, from a client in Germany over a kept-open connection. Your numbers depend on your workbook and on the distance to the server. A large workbook with thousands of formulas takes longer.

Why is the first call slower than the ones after it?

The workbook has to be loaded for the first call after publishing or after a quiet period, and the client has to set up the connection. In our measurement the first call after a pause took 41 ms on the server and 213 ms for the round trip, 86 ms of which were connection and TLS set-up.

How do I see how long the calculation took?

Every answer carries the times in its metadata: executionTime is the calculation time and totalTime the total time on the server, both in milliseconds. If cached is true, the answer came from a stored result.

Does a stored result make my calls much faster?

It saves the calculation, not the way to the server. In our measurement the server time went from 19 ms to 5 ms and the round trip from 97 ms to 81 ms.

Next steps