Files
bun.sh/bench
Nathan Whitaker a8ccdb02e9 fix(benchmark): postgres benchmark was not performing any queries under deno and node (#22926)
### What does this PR do?
Fixes the postgres benchmark so that it actually benchmarks query
performance on node and deno.

Before this PR, the `sql` function was just creating a tagged template
function, which involved connecting to the database. So basically bun
was doing queries, but node and deno were just connecting to the
postgres database over and over.

You can see from the first example in the docs that you're supposed to
call the default export in order to get back a function to use with
template literals: https://www.npmjs.com/package/postgres


### How did you verify your code works?
Ran it
2025-09-23 17:48:10 -07:00
..
2024-11-08 23:15:24 -08:00
2023-07-19 23:57:41 -07:00
2023-03-02 19:02:10 -08:00
2024-11-08 23:15:24 -08:00
2024-11-08 23:15:24 -08:00
2024-11-08 23:15:24 -08:00
2025-05-14 18:43:15 -07:00
2024-11-08 23:15:24 -08:00
2025-02-14 06:32:57 -08:00
2025-01-21 22:09:23 -08:00
2024-11-08 23:15:24 -08:00
2024-11-08 23:15:24 -08:00
2025-08-14 22:42:05 -07:00
2025-08-14 22:42:05 -07:00
2024-11-08 23:15:24 -08:00

npm install

bun run ffi
bun run log
bun run gzip
bun run async
bun run sqlite

# to use custom version of bun/deno/node binary
BUN=path/to/bun bun run ffi
# or edit .env file