More refactoring and documentation improvements

This commit is contained in:
Patrick Donelan 2010-04-09 01:12:30 -04:00
parent b7e7d5b936
commit 10e8d1898d
8 changed files with 140 additions and 47 deletions

View file

@ -1,14 +1,17 @@
# Little script used to run benchmarks against dev.localhost.localdomain
#
# To profile, run "perl -d:NYTProf benchmark.pl"
use Devel::Leak::Object qw(GLOBAL_bless);
$Devel::Leak::Object::TRACKSOURCELINES = 1;
use lib '/data/WebGUI/lib';
use WebGUI;
use Plack::Test;
use HTTP::Request::Common;
my $app = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' )->psgi_app;
my $wg = WebGUI->new( root => '/data/WebGUI', site => 'dev.localhost.localdomain.conf' );
my $app = $wg->psgi_app;
test_psgi $app, sub {
my $cb = shift;
my $res = $cb->( GET "/" );
} for 1..100;
} for 1..100;