Skip to content

Replace unsubstantiated performance claims with real benchmark numbers - #21

Merged
magi8101 merged 1 commit into
masterfrom
docs/honest-benchmarks
Sep 18, 2026
Merged

magi8101 merged 1 commit into
masterfrom
docs/honest-benchmarks

Conversation

@magi8101

Copy link
Copy Markdown
Owner

Summary

  • The docs site's Performance section (and PostPyro_documentation.md's Performance Notes) implied PostPyro is faster than asyncpg/psycopg without any measurement behind it. Ran benchmarks/bench_vs_alternatives.py against a live Postgres 16 and replaced the claims with the real numbers.
  • Read plainly: PostPyro is currently slower on plain round-trips and transactions, roughly on par on bulk inserts, and mixed on concurrency (behind asyncpg, ahead of psycopg3). Not a "PostPyro is faster" story - no optimization pass has happened yet, correctness and API stability came first.
  • Both docs keep the caveat that this is one machine, one point in time, and link to benchmarks/README.md so anyone can reproduce it themselves.
  • Also softened the "Rust backend" reason card - it implied an edge over asyncpg/psycopg3 specifically from avoiding Python interpreter overhead, but both of those are also compiled (Cython/C), so that framing was misleading in a driver-comparison context even though the underlying fact is true.

Test plan

  • Served docs/ locally, screenshotted the Performance section to confirm the new table renders correctly
  • Content-only change to docs/index.html and PostPyro_documentation.md - no code touched

What: the docs site's "Performance" section and PostPyro_documentation.md's
Performance Notes previously implied PostPyro is faster than asyncpg/
psycopg (star ratings in the original page, unqualified "why PostPyro
is faster" framing) without any measurement behind it. Ran
benchmarks/bench_vs_alternatives.py against a live Postgres 16 and
replaced the claims with the actual numbers:

| Benchmark                    | PostPyro | asyncpg | psycopg3 |
|-------------------------------|---------:|--------:|---------:|
| Round trip (200x SELECT 1)    |   29.86ms|  20.74ms|   17.19ms|
| Bulk insert (1,000 rows)      | 4304.05ms|4475.53ms| 4171.60ms|
| Transaction (4 statements)    |    8.90ms|   4.85ms|    4.13ms|
| Concurrency (20 tasks)        |    2.81ms|   1.16ms|    3.91ms|

Read plainly: PostPyro is currently slower on round-trips and
transactions, roughly on par on bulk inserts, mixed on concurrency -
not a "PostPyro is faster" story. No optimization pass has happened
yet on the async rewrite; correctness and API stability came first.
Both docs keep the caveat that this is one machine, one point in
time, and link to benchmarks/README.md to reproduce it.

Also softened the "Rust backend" reason card, which implied an
advantage over asyncpg/psycopg3 specifically from avoiding Python
interpreter overhead - both of those are also compiled (Cython/C),
so that framing was misleading in a driver-comparison context even
though the underlying fact (Rust, not Python) is true.
Copilot AI lite review requested due to automatic review settings September 18, 2026 17:26
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
post-pyro Ready Ready Preview Sep 18, 2026 5:27pm UTC

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 6deeca2e-4c24-4847-a6cf-924d8db9db06

📥 Commits

Reviewing files that changed from the base of the PR and between 31b5ac3 and b04880e.

📒 Files selected for processing (2)
  • PostPyro_documentation.md
  • docs/index.html

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@magi8101
magi8101 merged commit 1278c79 into master Sep 18, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — b04880e2 Deployed Sep 18, 2026 by vercel[bot]
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