From c7cf6f411b20493a042d3add54ed0d2d4ca6a0e7 Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Tue, 13 Dec 2016 08:37:31 +0100 Subject: [PATCH 1/2] Update installandrun.sh --- installandrun.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installandrun.sh b/installandrun.sh index 5448595..2ddd5ec 100644 --- a/installandrun.sh +++ b/installandrun.sh @@ -4,6 +4,7 @@ npm install hapi npm install express npm install restify npm install koa +npm install bluebird npm install n npm install total.js n install latest @@ -38,4 +39,4 @@ sleep 5 echo total.js >> results.txt ; node totalserver/total.js & sleep 5 ; ab -k -n 50000 -c 100 -t 20 http://127.0.0.1:8000/ | grep "Requests per second:" >> results.txt ; pkill -f total ; -sleep 5 \ No newline at end of file +sleep 5 From 3657955c1b626e987ccc1c9a8222d60aa03c056d Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Tue, 13 Dec 2016 08:38:44 +0100 Subject: [PATCH 2/2] Update koaserver.js --- koaserver.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koaserver.js b/koaserver.js index 5d42e0f..3b7a63c 100644 --- a/koaserver.js +++ b/koaserver.js @@ -1,3 +1,4 @@ +global.Promise = require('bluebird'); var koa = require('koa'); var app = koa(); @@ -6,4 +7,4 @@ app.use(function *(){ this.body = 'Hello World!'; }); -app.listen(8000); \ No newline at end of file +app.listen(8000);