Skip to content

test: loadtest for supautils utility statements#181

Merged
steve-chavez merged 1 commit intosupabase:masterfrom
steve-chavez:bench
Mar 9, 2026
Merged

test: loadtest for supautils utility statements#181
steve-chavez merged 1 commit intosupabase:masterfrom
steve-chavez:bench

Conversation

@steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Mar 7, 2026

Adds a supautils-loadtest command, which when run it gives the following results.

(These can also be seen on CI, scroll down at the bottom)

Results without supautils:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 55.967835 (without initial connection time)

Results with supautils and superuser:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 55.389345 (without initial connection time)

Results with supautils and privileged_role:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 56.070317 (without initial connection time)

It uses pgbench and the newly added bench/utility.sql, which exercises the utility statements for which the supautils hook runs.

This also runs on CI, so regressions can be detected.

Adds a `supautils-loadtest` command, which when run it gives the
following results.

```
Results without supautils:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 55.967835 (without initial connection time)

Results with supautils and superuser:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 55.389345 (without initial connection time)

Results with supautils and privileged_role:

pgbench (17.0)
transaction type: ./bench/utility.sql
...
tps = 56.070317 (without initial connection time)
```

It uses pgbench and the newly added bench/utility.sql, which exercises
the utility statements for which the supautils hook runs.

This also runs on CI, so regressions can be detected.
@steve-chavez steve-chavez marked this pull request as ready for review March 7, 2026 01:50
@steve-chavez steve-chavez requested a review from soedirgo March 7, 2026 12:04
@steve-chavez steve-chavez merged commit bc97e7d into supabase:master Mar 9, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants