amphp / cluster

Building multi-core network applications with PHP.
MIT License
60 stars 9 forks source link

How to bench this cluster? #6

Closed andreybolonin closed 6 years ago

andreybolonin commented 6 years ago

wrk -t4 -c400 -d10s tcp://127.0.0.1:1337

screen shot 2018-06-29 at 11 33 46 am

But worker accept the requests

screen shot 2018-06-29 at 11 34 51 am
kelunik commented 6 years ago

What's the code you're running?

andreybolonin commented 6 years ago

bin/cluster -s examples/hello-world.php

bwoebi commented 6 years ago

This is not a http server, but a simple socket. To bench with wrk, you actually need to integrate amphp/http-server with cluster.