Mike Smith f532415394 master Should only kill with 15 11 年之前
..
README.md ff731414bc added JSON::XS as a dependency in README 11 年之前
__init__.py d6c9f34826 created benchmark_config and setup file for mojolicious 12 年之前
app.pl da25374b94 Merge pull request #676 from tudorconstantin/master 11 年之前
benchmark_config 873dde0f06 Refactor benchmark_configs 12 年之前
nginx.conf da25374b94 Merge pull request #676 from tudorconstantin/master 11 年之前
setup.py f532415394 master Should only kill with 15 11 年之前
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 年之前

README.md

Setup

  • Perl 5.16.3
  • MySQL 5.5
  • Wrk 2.0

Requirements

  • Mojolicious
  • JSON::XS
  • DBI
  • DBD::mysql
  • Starman (if using Starman as web server)
  • Plack (for plackup)
  • nginx (if you want to front Mojolicious with nginx, nginx.conf provided)
  • Morbo and Hypnotoad provided by Mojolicious

Deployment

Set production mode:

export MOJO_MODE=production

Something along the lines of

plackup -s Starman --workers=8 -l /tmp/frameworks-benchmark.sock -a ./app.pl

if you want to front it with nginx, otherwise

plackup -s Starman --port 8080 --workers=8 -a ./app.pl

or the equivalent Morbo or Hypnotoad commands.