Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frameworks/workerman/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ opcache.huge_code_pages=1
memory_limit = 512M
opcache.jit_buffer_size=128M
opcache.jit=tracing

upload_tmp_dir = /dev/shm
3 changes: 3 additions & 0 deletions frameworks/workerman/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Workerman\Worker;
use Workerman\Protocols\Http\Response;
use Workerman\Connection\TcpConnection;
use Workerman\Protocols\Http\Http;

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/Db.php';
Expand All @@ -12,6 +13,8 @@
$http_worker = new Worker('http://0.0.0.0:8080');
$http_worker->reusePort = true;
$http_worker->count = (int) shell_exec('nproc');
$http_worker->name = 'bench';


// Increase max package size to 30MB for file upload test
TcpConnection::$defaultMaxPackageSize = 30 * 1024 * 1024;
Expand Down