An open API service indexing awesome lists of open source software.

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

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