I'm using php-resque for queuing my jobs. And I'm doing apache ab tool to benchmark my performance.
php-resque
does good job, but it's slow as every time my it connects to redis which impacts performance (without connection it handles ~130 Requests/sec
and with Resque::enqueue
it's ~30 requests/sec
).
So I was thinking to pass data to another file through exec
which will connect redis and queus job in the background, but found that exec
is way much slow.
What is next ? How can I make it handle redis queuing faster.
Note: I'm using this command to test performance.
ab -n 1000 -c 10 "http://localhost/index.php"