tfb fc68db4fc2 Disabling Nginx access logging from kelp and mojolicious 12 ani în urmă
..
README.md 8038d2db16 Fixed the production mode setting 12 ani în urmă
__init__.py d6c9f34826 created benchmark_config and setup file for mojolicious 12 ani în urmă
app.pl e7e0b0ca85 merge naturalist-master 12 ani în urmă
benchmark_config 873dde0f06 Refactor benchmark_configs 12 ani în urmă
nginx.conf fc68db4fc2 Disabling Nginx access logging from kelp and mojolicious 12 ani în urmă
setup.py e7e0b0ca85 merge naturalist-master 12 ani în urmă
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 ani în urmă

README.md

Setup

  • Perl 5.16.3
  • MySQL 5.5
  • Wrk 2.0

Requirements

  • Mojolicious
  • Mojolicious::Plugin::Database
  • 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=2 -l /tmp/frameworks-benchmark.sock -a ./app.pl

if you want to front it with nginx, otherwise

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

or the equivalent Morbo or Hypnotoad commands.