<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<div><br></div><div>Why dancer on starman becomes very slow? Am I doing something wrong?</div><div><br></div><div>#### directly starman</div><div>$ cat app.psgi</div><div><div>my $app = sub {</div><div> return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello World' ] ];</div><div>};</div><div>$ starman &</div><div>$ ab gives me 4000 reqs/second</div><div><br></div><div>#### directly dancer</div><div>$ cat app.pl</div><div>#!/usr/bin/env perl</div><div>use Dancer;</div><div><span style="font-size: 12pt;">get '/' => sub {</span><span style="font-size: 12pt;"> "Hello World!" </span><span style="font-size: 12pt;">};</span></div><div><span style="font-size: 12pt;">dance;</span></div></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">$ perl app.pl &</span></div><div><span style="font-size: 12pt;">$ ab gives me 600 reqs/second</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">#### dancer on starman</span></div><div><span style="font-size: 12pt;">$ starman app.pl &</span></div><div><span style="font-size: 12pt;">$ ab still gives me 600 reqs/second</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Why so slow?</span></div><div><span style="font-size: 12pt;">Is it </span>possible let dancer deal with HTML request, and starman deal with non-HTML request directly?</div><div><span style="font-size: 12pt;"><br></span></div>                                            </div></body>
</html>