Skip to content

Instantly share code, notes, and snippets.

@rdlowrey
Last active March 28, 2016 06:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rdlowrey/5665941 to your computer and use it in GitHub Desktop.
Save rdlowrey/5665941 to your computer and use it in GitHub Desktop.
libevent aerys benchmarks

100k Requests -- 100 concurrent clients

ab -n 100000 -c 100 -k http://127.0.0.1:1337/

Server Software:        
Server Hostname:        127.0.0.1
Server Port:            1337

Document Path:          /
Document Length:        48 bytes

Concurrency Level:      100
Time taken for tests:   13.938 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    99370
Total transferred:      18800234 bytes
HTML transferred:       4800864 bytes
Requests per second:    7174.46 [#/sec] (mean)
Time per request:       13.938 [ms] (mean)
Time per request:       0.139 [ms] (mean, across all concurrent requests)
Transfer rate:          1317.20 [Kbytes/sec] received

100k Requests -- 1,000 concurrent clients

ab -n 100000 -c 1000 -k http://127.0.0.1:1337/

Server Software:        
Server Hostname:        127.0.0.1
Server Port:            1337

Document Path:          /
Document Length:        48 bytes

Concurrency Level:      1000
Time taken for tests:   14.206 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      18800000 bytes
HTML transferred:       4800000 bytes
Requests per second:    7039.28 [#/sec] (mean)
Time per request:       142.060 [ms] (mean)
Time per request:       0.142 [ms] (mean, across all concurrent requests)
Transfer rate:          1292.37 [Kbytes/sec] received

100k Requests -- 10,000 concurrent clients

ab -n 100000 -c 10000 -k http://127.0.0.1:1337/

Server Software:        
Server Hostname:        127.0.0.1
Server Port:            1337

Document Path:          /
Document Length:        48 bytes

Concurrency Level:      10000
Time taken for tests:   17.023 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      18800000 bytes
HTML transferred:       4800000 bytes
Requests per second:    5874.25 [#/sec] (mean)
Time per request:       1702.345 [ms] (mean)
Time per request:       0.170 [ms] (mean, across all concurrent requests)
Transfer rate:          1078.48 [Kbytes/sec] received
<?php
use Aerys\Config\Configurator;
require dirname(__DIR__) . '/autoload.php';
$myApp = function(array $asgiEnv) {
$body = '<html><body><h1>Hello, World.</h1></body></html>';
return [$status = 200, $reason = 'OK', $headers = [], $body];
};
(new Configurator)->createServer([[
'listenOn' => '*:1337',
'application' => $myApp
]])->start();
@Lewiscowles1986
Copy link

Is Aerys dead forever?

@mfdj
Copy link

mfdj commented Mar 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment