Created
February 2, 2016 14:08
-
-
Save hassy/ed9fe0b2fff766a6fd96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node server.js | |
# npm install artillery | |
./node_modules/.bin/artillery run large_payload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Hapi = require('hapi'); | |
var PORT = 3003; | |
var server = new Hapi.Server(); | |
server.connection({ | |
host: '0.0.0.0', | |
port: PORT | |
}); | |
server.route({ | |
method: 'POST', | |
path: '/', | |
handler: f | |
}); | |
server.start(function() { | |
console.log('Target listening on 0.0.0.0:' + PORT); | |
}); | |
function f(req, reply) { | |
reply('ok'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment