I would like to measure and compare server-performance between long-polling and websockets. I have built a simple PHP-application with ratchet(php websockets) that just outputs data in the console(guide: http://socketo.me/docs/hello-world). The long-polling app is also PHP and just generating random numbers and logging them in the console(this post: How do I implement basic "Long Polling"?).
Is there any way to do a fair comparison between these applications without using a database? which tool(s) should I use to measure?
Thanks.