More refactoring and documentation improvements
This commit is contained in:
parent
b7e7d5b936
commit
10e8d1898d
8 changed files with 140 additions and 47 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue