Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion installandrun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
sleep 5
3 changes: 2 additions & 1 deletion koaserver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global.Promise = require('bluebird');
var koa = require('koa');
var app = koa();

Expand All @@ -6,4 +7,4 @@ app.use(function *(){
this.body = 'Hello World!';
});

app.listen(8000);
app.listen(8000);