Skip to content

crud and async-db rank the Postgres client, not the framework #1219

Description

@nigrosimone

The crud rules ask for "a standard async Postgres driver with connection pooling" and leave the choice open, so the row ends up ranking the database client and the HTTP framework almost disappears from it.

From data.json:

  • crud-4096: uWebSockets.js 357,544, fulmine 353,456, a 1% difference. The same two entries on baseline-4096 are 2,515,762 and 1,245,654, a factor of two.
  • async-db-1024: express 169,687 vs fulmine 227,094, 1.34x. On json-4096 the same two are 395,361 and 1,082,279, 2.7x.
  • The top of crud is entries with their own Postgres client: zix has a per-worker pipelined postgres lane, ioxide ships ioxide.pg.

I do not think excluding frameworks without their own driver is the answer, it would empty the profile. What would help: name the driver on the row or in meta.json, or pin one driver per language for standard entries and leave custom clients to tuned, the way compression works.

Same question for async-db and fortunes.

Ref #1103 (not strictly related, but similar)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsAbout test design, issues with tests etc.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions