AB test adjustments

Added libev test
Added lone test for quick compliance checking
Added a test w/o UTF-8 checks to show perf
This commit is contained in:
Chris Boden 2012-11-17 19:11:30 -05:00
parent 3a584bfe13
commit f7399dde44
6 changed files with 51 additions and 5 deletions

View File

@ -10,10 +10,17 @@ cover:
abtests: abtests:
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php & ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php & ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php &
wstest -m testeeserver -w ws://localhost:8002 & ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libev.php &
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-noutf8.php &
wstest -m testeeserver -w ws://localhost:8004 &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json
killall php wstest killall php wstest
abtest:
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-quick.json
killall php
profile: profile:
php -d 'xdebug.profiler_enable=1' tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php & php -d 'xdebug.profiler_enable=1' tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-profile.json wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-profile.json

View File

@ -0,0 +1,12 @@
<?php
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$loop = new React\EventLoop\LibEvLoop;
$sock = new React\Socket\Server($loop);
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
$sock->listen(8002, '0.0.0.0');
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
$server->run();

View File

@ -0,0 +1,13 @@
<?php
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$loop = new React\EventLoop\StreamSelectLoop;
$sock = new React\Socket\Server($loop);
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
$app->setEncodingChecks(false);
$sock->listen(8003, '0.0.0.0');
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
$server->run();

View File

@ -3,9 +3,11 @@
, "outdir": "reports/ab" , "outdir": "reports/ab"
, "servers": [ , "servers": [
{"agent": "Ratchet/0.2 libevent", "url": "ws://localhost:8000", "options": {"version": 18}} {"agent": "Ratchet/0.2.3 libevent", "url": "ws://localhost:8000", "options": {"version": 18}}
, {"agent": "Ratchet/0.2 streams", "url": "ws://localhost:8001", "options": {"version": 18}} , {"agent": "Ratchet/0.2.3 libev", "url": "ws://localhost:8002", "options": {"version": 18}}
, {"agent": "AutobahnTestSuite/0.5.2", "url": "ws://localhost:8002", "options": {"version": 18}} , {"agent": "Ratchet/0.2.3 -utf8", "url": "ws://localhost:8003", "options": {"version": 18}}
, {"agent": "Ratchet/0.2.3 streams", "url": "ws://localhost:8001", "options": {"version": 18}}
, {"agent": "AutobahnTestSuite/0.5.9", "url": "ws://localhost:8004", "options": {"version": 18}}
] ]
, "cases": ["*"] , "cases": ["*"]

View File

@ -3,7 +3,7 @@
, "outdir": "reports/profile" , "outdir": "reports/profile"
, "servers": [ , "servers": [
{"agent": "Ratchet-libevent/0.2", "url": "ws://localhost:8000", "options": {"version": 18}} {"agent": "Ratchet", "url": "ws://localhost:8000", "options": {"version": 18}}
] ]
, "cases": ["9.7.4"] , "cases": ["9.7.4"]

View File

@ -0,0 +1,12 @@
{
"options": {"failByDrop": false}
, "outdir": "reports/rfc"
, "servers": [
{"agent": "Ratchet", "url": "ws://localhost:8001", "options": {"version": 18}}
]
, "cases": ["*"]
, "exclude-cases": ["1.2.*", "2.3", "2.4", "2.6", "9.2.*", "9.4.*", "9.6.*", "9.8.*"]
, "exclude-agent-cases": {}
}