postgres-benchmarks
imdbench
postgres-benchmarks | imdbench | |
---|---|---|
4 | 11 | |
69 | 219 | |
- | 3.7% | |
10.0 | 4.3 | |
over 3 years ago | 21 days ago | |
JavaScript | Python | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
postgres-benchmarks
-
PostgresJs: The Fastest full featured PostgreSQL client for Node.js and Deno
There's a link to a simple Benchmark right after the title.
Here are two:
https://github.com/porsager/postgres-benchmarks
https://porsager.github.io/imdbench/sql.html
-
Does Prisma work in production?
and really fast (https://github.com/porsager/postgres-benchmarks) even faster than the native postgres
-
Show HN: Postgres.js – Fastest Full-Featured PostgreSQL Client for Node and Deno
> On the surface I'm not sure this explanation passes the smell test. Almost irrespective of how you get the data from your network card into v8 / nodejs, you're going to be crossing c++/v8 boundaries.
yes, you are, but the differences are the object creation that occurs. a single buffer coming from c/c++ (a socket, let's say) can be parsed and turned into a large number of objects in javascript much more quickly. yes, you're passing through that barrier once, but creating all of those objects from c++ and passing through it 20-30 times is a lot more expensive.
> Out of curiosity, do you have links to these other projects where they have similar benchmarking attempts/results?
how about pg vs pg-native? https://github.com/porsager/postgres-benchmarks#results
and unfortunately, I cannot find the original discussions from when node-redis went from native to pure javascript, but it was about a 30-40% speed increase originally if memory serves (I was the one who did that original conversion after a lot of deep dives into v8 and performance crossing the barrier).
as an aside, I'm also the maintainer of plv8, and am happy to discuss the same types of performance issues of dealing with jsonb vs json (which in Postgres is text): creating objects vs a simple JSON.parse() in c++ is a significant difference.
imdbench
- PostgresJs: The Fastest full featured PostgreSQL client for Node.js and Deno
-
Why is Prisma so popular and who the hell is using it for production?
[0] https://github.com/edgedb/imdbench
-
EdgeDB 2.0
Only the query compiler is in pure Python and you only hit that once per query, as the compilation result is trivially cached. The hot path is a combination of Cython, C and Rust. We have a suite of benchmarks [1] that show relative overhead of EdgeDB compared to raw Postgres is quite low.
[1] https://github.com/edgedb/imdbench
-
How slow are ORMs, really?
We spent a lot of time optimizing every benchmark. Here's what creator of sqlalchemy said about our code: https://github.com/edgedb/imdbench/pull/46 (and then he proposed improvements). We'll surely take a look at prefetch_related.
- IMDBench – Benchmarking ORMs with realistic queries
- Benchmarking TypeScript ORMs: Prisma vs Sequelize vs TypeORM vs EdgeDB
- Benchmarking Python and JavaScript ORMs: Django, SQLAlchemy, Prisma, TypeORM, Sequelize, EdgeDB
- Performance: SQLAlchemy vs Django vs EdgeDB
What are some alternatives?
plv8 - V8 Engine Javascript Procedural Language add-on for PostgreSQL
cr-sqlite - Convergent, Replicated SQLite. Multi-writer and CRDT support for SQLite
prisma-redis-middleware - Prisma Middleware for caching queries in Redis
rfcs - RFCs for major changes to EdgeDB
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
edgedb-cli - The EdgeDB CLI
pgtyped - pgTyped - Typesafe SQL in TypeScript
edgedb-go - The official Go client library for EdgeDB
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
node-redis - Redis Node.js client
pitwall-pg - A postgres library to help write safe, parameterized, transaction-aware SQL for when an ORM or query builder isn't the right tool for the job