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 testcommand - Analyze the output in the .reports folder(it will be
created as a result of
npm testtask)
- App should be placed in
appfolder - App should be containerised
- App should provide
start.shscript that builds container and runs it. - App should provide
stop.shscript 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
testcommand - Include app into the stop command by updating npm
stop-allcommand - Used to stop all the apps in a case when something went wrong.