Skip to content

Benchmarks

Throughput of simulate() (CUDA graph replay, float64, gravity + J2, dt = 0.01 s) from benchmarks/bench.py: steps/s of the whole batch, with entity-steps/s (steps/s × entities) in parentheses. Single-body rows run with termination checks off and no thrust. The tables are the committed per-GPU baselines in benchmarks/baselines/, the numbers the regression gate compares against.

NVIDIA GeForce RTX 4070 Ti SUPER — recorded 2026-11-04, Warp 1.18.0, CUDA driver 13.0, cosmic_warp 0.1.0, Python 3.12.16.

Workload Symplectic RK4 Euler
16 environments 54,895 (1 M) 50,844 (1 M) 113,658 (2 M)
1,024 environments 20,066 (21 M) 14,633 (15 M) 39,642 (41 M)
16,384 environments 18,822 (308 M) 13,076 (214 M) 35,854 (587 M)
4,096 environments × 4 bodies, termination checks on 17,515 (287 M) 12,653 (207 M) 31,929 (523 M)
16,384 environments, thrusters firing 15,243 (250 M) 11,568 (190 M) 24,278 (398 M)

Differentiable windows (32 steps, DiffVecEnv with a linear torch policy), windows/s:

Environments Rollout Rollout + backward
1,024 101.4 38.7
4,096 81.9 36.3

Environment-steps per second against the number of parallel environments for Euler, symplectic and RK4, log-log Environment-steps per second against the number of parallel environments for Euler, symplectic and RK4, log-log

Environment-steps per second against parallel environments, single body, from the RTX 4070 Ti SUPER baseline above: still rising at 16 384, the largest batch recorded. Drawn from benchmarks/baselines/ at site build.

Why float64 limits the step

The step is bound by FP64 arithmetic, not by memory or register spills. Consumer (GeForce) GPUs run FP64 at 1/64 of their FP32 rate: on the RTX 4070 Ti SUPER the symplectic step reaches 3.5 × 10⁸ env-steps/s at 2²⁰ environments, close to the card's measured FP64 peak, and only 2–7× a 16-core CPU running the same kernels. GPUs with full-rate FP64 (datacenter parts) have not been measured. The measurements behind this are in the experiment record.

Method

python benchmarks/bench.py --save           # record this GPU's baseline (first run)
python benchmarks/bench.py                  # compare: exit 1 on a >15 % regression
python benchmarks/bench.py --threshold 10   # stricter gate

The script warms up first (JIT compilation and graph capture excluded), brackets each timed region with wp.synchronize() and reports the median of repeated runs. Every GPU gets its own baseline; never compare across GPUs or Warp versions. The differentiable-window rows need torch. To time your own batch sizes, see the scalability example.