Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres Benchmark #7

Open
3 tasks
kiwicopple opened this issue Nov 18, 2020 · 3 comments
Open
3 tasks

Postgres Benchmark #7

kiwicopple opened this issue Nov 18, 2020 · 3 comments

Comments

@kiwicopple
Copy link
Member

Chore

As part of our move from Alpha to Beta, we will want to be clear about the limitations and performance of our Postgres offering (free tier).

In this benchmark just the Postgres database.

We need to do 3 things:

  • Design a benchmark (if it isn't already designed)
  • Perform the benchmark
  • Create a blog post or documentation detailing the results
@kiwicopple
Copy link
Member Author

kiwicopple commented Nov 18, 2020

From Angelico:

Online resources (eg.) seem to point towards using pgbench and its resultant metric transactions per second or tps.

Should be a helpful decider between t3a.nano & t3a.micro for the DB instance

@steve-chavez
Copy link
Member

steve-chavez commented Apr 29, 2022

Edit: As noted below the previous methodology here was wrong. This is now corrected.

pgbench tests for some of the m5a instances(tuned according to pgtune).

# steps taken from https://www.cloudbees.com/blog/tuning-postgresql-with-pgbench

createdb example
pgbench example -i -s 50 --foreign-keys

# Ran the following command 3 times on all the instance types
# This was run on a different machine with 8 cores(t3a.2xlarge)
pgbench -c 100 -j 8 -M prepared -T 30 example 
type run1 run2 run3
m5a.large 1509.766608 1685.471195 1791.559195
m5a.xlarge 3081.890468 3799.897694 3836.188151
m5a.2xlarge 4753.743995 7775.855491 7836.620631
m5a.4xlarge 5702.618662 11688.693390 11828.751758
m5a.8xlarge 5854.134383 12403.998820 12550.028498

@darora
Copy link

darora commented Apr 29, 2022

(Just a note for any observers; there are some flaws with the methodology used for the above numbers, we'll be updating them soon)

@steve-chavez steve-chavez mentioned this issue Apr 30, 2022
3 tasks
@kiwicopple kiwicopple transferred this issue from supabase/benchmarks-archive Nov 1, 2022
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

No branches or pull requests

3 participants