Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Performance comparison Apache/FastCGI/Plack vs Apache/FCGI vs Plack standalone vs Apache/mod_perl (was "New version of Mod_perl")

by adamarc (Initiate)
on Jan 29, 2015 at 16:02 UTC ( [id://1114930]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    100 concurrent requests with ~10KB script:
                         Requests Correct  Requests Error     AVG_msec
    ...
    Apache 2.4/FastCGI/Plack    13971             0              213
    Plack standalone            13042             0              228
    Apache 2.5/mod_perl          1689             0              217
    
  2. or download this
    #!/usr/bin/perl
    
    # added to httpd.conf:
    ...
       $body = encode_utf8($body);
       print $body;
    }
    
  3. or download this
    #!/usr/bin/env plackup -s FCGI
    
    # lines added to httpd.conf:
    ...
       $body = encode_utf8($body);
       return [200,['Content-Type' => 'text/html', charset => 'utf-8'],[$b
    +ody]];
    };
    
  4. or download this
    #!/usr/bin/perl
    
    use DBI;
    ...
       print $body;
       return 1;
    }
    
  5. or download this
    /* MySQL 5.6 */
    CREATE DATABASE IF NOT EXISTS `testdatabase` /*!40100 DEFAULT CHARACTE
    +R SET utf8 */;
    ...
        ('?????????'),
        ('Ceština'),
        ('Türkçe');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1114930]
Approved by Corion
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found