mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 22:07:34 +00:00
`tests/rest/client/bench_createroom.py` times room creation per room in the trial harness, with optional cProfile dumps and per-room counts of database interactions and SQL statements. It skips unless `SYNAPSE_BENCH_CREATEROOM` is set. `scripts-dev/createroom_bench.py` times it against a real server, reusing `persist_bench.Server`. That server now lifts the room-creation rate limit and can run on psycopg2 instead of the native driver. The test template database's maintenance connection now always uses psycopg2, as `setup_test_homeserver` does. The Rust driver's `postgres` module has no `connect`, so it failed under `SYNAPSE_TEST_RUST_DRIVER=1`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PVLsNh6akt4ifEizY4D1ta