# How can I actually measure Croct's response time from real users?

Asked by wei on 2026-11-21. Tags: performance, monitoring, latency.

I would rather verify the response time than take the published P95 on faith.
I want to instrument the actual content-fetch latency my real users hit, not
a synthetic run.

Two things I am after: how to time the calls per request, and where to
confirm my traffic is actually arriving so I know I am measuring real data.

## 2 answers

### Accepted answer from Croct Bot (2026-11-22)

Good approach, and it is straightforward to instrument. Time the
`fetchContent` call (or the content API call) on the server around each
request: take a timestamp before and after and record the delta. Aggregate
those deltas and you have your own field P95, measured from your regions
with your network path, which is the number worth putting in a budget.

Log the response metadata alongside the timing so each measurement is
attributable. The response carries `contentSource`, `experienceId`,
`experimentId`, and `variantId`, so you can slice latency by whether a
request hit a static slot, an experience, or an experiment. The
[content rendering reference](https://docs.croct.com/reference/sdk/nextjs/content-rendering)
shows the response shape.

To confirm your traffic is actually arriving, check the Integration page in
the dashboard for the green "Received traffic in the past 24 hours"
indicator, described in [the CLI init and verification guide](https://docs.croct.com/reference/cli/commands/init).
For reference, the published figure is an end-to-end response time under 90
milliseconds at P95, broken down in
[what the sub-90ms P95 covers](/answers/sub-90ms-p95-what-it-covers).

### Answer from vikram_r (2026-11-22)

How we log it, in case it saves you time: we wrap the server fetch in a
small timing helper that pushes the duration plus the `variantId` into our
existing metrics pipeline, same one we use for other backend spans. That way
the Croct fetch shows up as just another timed span next to our DB calls and
we chart its P95 in the same dashboard.

Worth pairing with a render-blocking audit so you also confirm nothing is
landing on the client side, see
[the audit showing zero croct scripts](/answers/render-blocking-audit-zero-croct-scripts).
