Gazelle
view release on metacpan or search on metacpan
$ plackup -s Gazelle --port 5003 --max-reqs-per-child 50000 \
-E production -a app.psgi
# DESCRIPTION
Gazelle is a PSGI Handler. It is derivied from [Starlet](https://metacpan.org/pod/Starlet).
A lot of its code was rewritten or optimized by converting it to XS code.
Gazelle supports following features:
- Supports HTTP/1.1. (Without Keepalive support.)
- Ultra fast HTTP processing using picohttpparser.
- Uses accept4(2) if the operating system supports it.
- Uses writev(2) for output responses.
- Prefork and graceful shutdown using Parallel::Prefork.
- Hot deploy and unix domain socket using Server::Starter.
Gazelle is suitable for running HTTP application servers behind a reverse proxy
such as nginx.
One can find a Benchmark here:
lib/Gazelle.pm view on Meta::CPAN
=head1 DESCRIPTION
Gazelle is a PSGI Handler. It is derivied from L<Starlet>.
A lot of its code was rewritten or optimized by converting it to XS code.
Gazelle supports following features:
=over
=item * Supports HTTP/1.1. (Without Keepalive support.)
=item * Ultra fast HTTP processing using picohttpparser.
=item * Uses accept4(2) if the operating system supports it.
=item * Uses writev(2) for output responses.
=item * Prefork and graceful shutdown using Parallel::Prefork.
=item * Hot deploy and unix domain socket using Server::Starter.
lib/Plack/Handler/picohttpparser/bench.c view on Meta::CPAN
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include <assert.h>
#include <stdio.h>
#include "picohttpparser.h"
#define REQ "GET /wp-content/uploads/2010/03/hello-kitty-darth-vader-pink.jpg HTTP/1.1\r\nHost: www.kittyhell.com\r\nUser-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; ja-JP-mac; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Pathtraq/0.9\r\nAccep...
int main(void)
{
const char* method;
size_t method_len;
const char* path;
size_t path_len;
int minor_version;
struct phr_header headers[32];
size_t num_headers;
( run in 2.039 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )