Implement real world API with different node.js ORMs to compare them.
Code for ORMs you can find in src/orms, for benchmark src/benchmarks, tests are in src/tests.
Article about this overview: link
npm i # install deps
sudo systemctl start postgresql # make sure you have postgres and it's running
cp .env.example .env # create env file and make sure it has correct db credentials
npm run db create # will create one database for development and second for tests
npm run db migrate # run migrationsEvery endpoint is covered with test, see "scripts" section in package.json to run specific tests, like:
npm run test:sequelizenpm run bench:select # measure selecting articles
npm run bench:insert # measure inserting articles