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');