[dancer-users] Dancer on Starman, why slow down?

hommura hiroaki hommura_hiroaki at outlook.com
Thu May 30 07:56:45 BST 2013


Hi all,
Why dancer on starman becomes very slow? Am I doing something wrong?
#### directly starman$ cat app.psgimy $app = sub {        return [ 200, [ 'Content-Type' => 'text/plain' ], [ 'Hello World' ] ];};$ starman &$ ab gives me 4000 reqs/second
#### directly dancer$ cat app.pl#!/usr/bin/env perluse Dancer;get '/' => sub {  "Hello World!" };dance;
$ perl app.pl &$ ab gives me 600 reqs/second
#### dancer on starman$ starman app.pl &$ ab still gives me 600 reqs/second
Why so slow?Is it possible let dancer deal with HTML request, and starman deal with non-HTML request directly?
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130530/bdad6207/attachment.htm>


More information about the dancer-users mailing list