> For the complete documentation index, see [llms.txt](https://carec.gitbook.io/carec-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://carec.gitbook.io/carec-docs/documentation/simulation/performance-and-determinism.md).

# Performance and Determinism

A run can be logically correct yet misleading if sensor rates collapse or simulated time diverges. CAREC therefore reports timing and resource behavior with functional results.

## Metrics

| Metric                         | Why it matters                                   |
| ------------------------------ | ------------------------------------------------ |
| Real-time factor               | Shows whether physics keeps pace with wall time  |
| Physics step and update rate   | Controls dynamics and contact fidelity           |
| Topic frequency and jitter     | Detects starving sensors and control loops       |
| End-to-end command latency     | Bounds response from decision to simulated drive |
| CPU, GPU, and memory           | Supports contributor and CI capacity planning    |
| Dropped messages / queue depth | Exposes overload and QoS problems                |
| Run-to-run variance            | Detects hidden nondeterminism                    |

## Resource profiles

* **Core/headless:** reduced graphics, essential sensors, smoke and CI.
* **Developer desktop:** GUI, RViz, standard sensor set, interactive debugging.
* **High-fidelity:** dense sensors, actors, recording, perception and synthetic data.

Publish measured requirements only after benchmarking. Until then, avoid presenting a particular GPU, memory size, or frame rate as a guaranteed minimum.

## Determinism controls

Fix random seeds, start state, world version, update rates, executor configuration, parameters, and scenario event timing. Compare outcomes with tolerances appropriate to floating-point physics, not byte-for-byte logs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://carec.gitbook.io/carec-docs/documentation/simulation/performance-and-determinism.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
