https://github.com/numtel/node-pg-mem-test
https://github.com/numtel/node-pg-mem-test
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/numtel/node-pg-mem-test
- Owner: numtel
- Created: 2015-05-11T09:41:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-13T05:13:42.000Z (about 11 years ago)
- Last Synced: 2025-02-15T04:42:38.584Z (about 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## node-postgres simple load test
This test provides a structure for running queries repeatedly while measuring the
application's memory usage as well as measuring response times on an array of live
queries (provided by [`pg-live-select` package](https://github.com/numtel/pg-live-select)).
A reading of `index.js` is recommended to understand the operations performed. The following commands can be used to get the application running on your machine:
```bash
$ npm install
# Configure database connection string (CONN_STR)
$ vim index.js
# Start the application with the following command: (Output file is optional)
$ node index.js out.json
```
Press `ctrl+c` to exit and display memory usage graphs.
If an output file is specified, it may be viewed using `index.html`.
### License
MIT