https://github.com/mitar/node-pg-json-benchmark
Benchmark of JSON queries for PostgreSQL
https://github.com/mitar/node-pg-json-benchmark
benchmark json postgresql
Last synced: about 2 months ago
JSON representation
Benchmark of JSON queries for PostgreSQL
- Host: GitHub
- URL: https://github.com/mitar/node-pg-json-benchmark
- Owner: mitar
- Created: 2019-01-10T07:37:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-12T00:48:31.000Z (over 7 years ago)
- Last Synced: 2025-03-28T17:47:29.516Z (over 1 year ago)
- Topics: benchmark, json, postgresql
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Benchmark of JSON queries for PostgreSQL
```bash
$ docker run -d --name postgres -e POSTGRES_PASSWORD=pass -p 5432:5432 postgres:11.1
$ npm install
$ node populate.js
$ node benchmark.js
$ node benchmark.js native
```
## Results
Evaluated using node v11.6.0 on Linux and [PostgreSQL 11.1 Docker image](https://hub.docker.com/_/postgres/),
`postgres:11.1`, with default configuration.
See [`results-js.log`](./results-js.log) for JS driver and [`results-native.log`](./results-native.log) for native driver. See [`results.csv`](./results.csv) for structured results.
Blog post with analysis: https://mitar.tnode.com/post/181893159351/in-nodejs-always-query-in-json-from-postgresql