Michael Hixson b472c2f4dd Remove source_code files, count all files instead (#3715) 7 年之前
..
t 21870db4dc Kelp - Fix the 1:500 range warning 11 年之前
README.md 8eb83142cb Fix all issues with Kelp and add MongoDB tests 11 年之前
app.ini 8eb83142cb Fix all issues with Kelp and add MongoDB tests 11 年之前
app.pl 6fce84a278 WIP: Dockerify everything (#3457) 7 年之前
benchmark_config.json f9360fc33b Docker Perl tests (#3426) 7 年之前
kelp-mongodb.dockerfile e2260cc4eb Perl/* remove techempower dependencies (#3506) 7 年之前
kelp.dockerfile e2260cc4eb Perl/* remove techempower dependencies (#3506) 7 年之前
nginx.conf f9360fc33b Docker Perl tests (#3426) 7 年之前

README.md

Setup

  • Perl 5.10+
  • MySQL 5.5
  • MongoDB
  • Wrk 2.0

Requirements

  • Kelp (install from CPAN)
  • Kelp::Module::JSON::XS (install from CPAN)
  • Kelp::Module::Template::Toolkit (install from CPAN)
  • DBD::mysql (install from CPAN)
  • Starman (install from CPAN)
  • MongoDB (install from CPAN)
  • nginx (if you want to front with nginx, nginx.conf provided)

Deployment

uWSGI (recommended)

  1. Make sure you have installed the psgi plugin.
  2. Deploy:

    ./uwsgi --plugins psgi --init app.ini

Plack + Starman

  1. Deploy via plackup

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

  2. If you want to front it with nginx, otherwise

    plackup -E deployment -s Starman --port=8080 --workers=25 -a ./app.pl

Expert contact

@naturalist ([email protected])