Hamilton Turner 8a80e33c80 Update dancer's nginx.conf to find new test root 11 жил өмнө
..
README.md 013257d22d Naming Perl properly 11 жил өмнө
__init__.py 013257d22d Naming Perl properly 11 жил өмнө
app.pl 013257d22d Naming Perl properly 11 жил өмнө
bash_profile.sh 013257d22d Naming Perl properly 11 жил өмнө
benchmark_config 013257d22d Naming Perl properly 11 жил өмнө
install.sh 013257d22d Naming Perl properly 11 жил өмнө
nginx.conf 013257d22d Naming Perl properly 11 жил өмнө
setup.py 8a80e33c80 Update dancer's nginx.conf to find new test root 11 жил өмнө
source_code 013257d22d Naming Perl properly 11 жил өмнө

README.md

Setup

  • Perl 5.16.3
  • MySQL 5.5
  • Wrk 2.0

Requirements

  • Dancer
  • Dancer::Plugin::Database
  • DBD::mysql
  • Starman (if using Starman as web server)
  • Plack (for plackup)
  • nginx (if you want to front Dancer with nginx, nginx.conf provided)

Deployment

Something along the lines of

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

if you want to front it with nginx, otherwise

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