Gather performans metrics from apps written in different frameworks.
All apps implements the same API and then app is being tested using autocannon utility.
- nodejs + npm(tested with nodejs 6.11.3, npm 3.10.10)
- docker (tested with 17.09.0-ce, build afdb6d4)
- Run
npm test
command - Analyze the output in the .reports folder(it will be
created as a result of
npm test
task)
- App should be placed in
app
folder - App should be containerised
- App should provide
start.sh
script that builds container and runs it. - App should provide
stop.sh
script that stops container. - App should listen to port
3000
- App should implement basic API:
GET /hello => 'Hello!'
GET /hello/:name => 'Hello ${name}'
- Include app into the test by updating npm
test
command - Include app into the stop command by updating npm
stop-all
command - Used to stop all the apps in a case when something went wrong.