Skip to content

Commit

Permalink
improve profiling and benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Sep 6, 2016
1 parent b8f8f75 commit 703d582
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/perf.pl
Expand Up @@ -7,6 +7,8 @@
use HTTP::Request::Common;
use Dumbbench;
use Getopt::Long qw<:config no_ignore_case>;
use HTTP::XSHeaders;
use HTTP::XSCookies;

$ENV{'DANCER_ENVIRONMENT'} = 'production';
$ENV{'PLACK_ENV'} = 'production';
Expand Down Expand Up @@ -70,7 +72,7 @@ sub check_app {
$app2->({
REQUEST_METHOD => 'GET',
PATH_INFO => '/',
});
}) for 1 .. 50;
DB::disable_profile();
DB::finish_profile();
} elsif ( $opts{'compare'} ) {
Expand Down

0 comments on commit 703d582

Please sign in to comment.