Files
SpacetimeDB/templates
Noa 0b30b16c2d Bring typescript benchmark client to parity with rust (#4494)
# Description of Changes

* Enable pipelining by default
  * Set defaults for `MAX_INFLIGHT_PER_WORKER` for spacetime and convex
* Add a warmup period
* Reduce allocations in sdk (not that much of an effect but still
improved things)

This gives improved parity with the rust client on my machine.

# Expected complexity level and risk

1

# Testing

- [x] Yup:
```
══════════════════════════════════════════════════════════════════════
      RESULTS
══════════════════════════════════════════════════════════════════════

spacetimedb ████████████████████████████████████████ 80,617 TPS
convex █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 235 TPS

      ╔════════════════════════════════════════════════════════════╗
      ║                                                            ║
      ║       🚀 spacetimedb is 343x FASTER than convex! 🚀        ║
      ║                                                            ║
      ╚════════════════════════════════════════════════════════════╝
    ```
2026-03-03 23:10:52 +00:00
..
2026-03-03 11:06:52 +00:00
2026-03-03 11:06:52 +00:00
2026-02-27 20:24:22 +00:00