Skip to content

nbwsc/performance_trial

Repository files navigation

performance_trial

performance trial of http back-end server framework

TOOLS

FRAMEWORKS

here contains following frameworks:

node : express koa hapi

python: django

go: iris

...

or you can start your own framework

USAGE

  1. start your frameworks(runserver script may not suitable for you.)
  2. set the taskconfig.js file . target is the task array ; wrk_arg is the wrk cli arguments.
  3. wrk.lua is the wrk script .
  4. run node --harmony-async-await index.js or npm startand wait;
  5. the result will show up in your defualt browser.

NOTICE

  • if you cant use this binary wrk you can build it on your own

    wrk@github

  • the async/await require node verison 7.xx & with "runtimeArgs": ["--harmony"]. If your node version dont support this ,you can use babel.

npm install

npm babelstart 
#or 
node babel_starter.js

SCREENSHOT

screenshot I think the python result is not accurate.but iris seems really fast.