Added benchmark script for NYTProf-ing

This commit is contained in:
Patrick Donelan 2010-03-16 23:35:13 -04:00
parent 5d4e0f95d7
commit e15c32e3f7
2 changed files with 23 additions and 1 deletions

View file

@ -1,4 +1,12 @@
use lib '/data/WebGUI/lib';
use WebGUI;
my $app = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' )->psgi_app;
# Some ways to achieve the same thing from the command line:
# plackup -MWebGUI -e 'WebGUI->new'
# plackup -MWebGUI -e 'WebGUI->new("dev.localhost.localdomain.conf")'
# plackup -MWebGUI -e 'WebGUI->new(root => "/data/WebGUI", site => "dev.localhost.localdomain.conf")'
#
# Or from a .psgi file:
# my $app = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' )->psgi_app;
# Or equivalently (using the defaults):
WebGUI->new;