pomelo-robot is a simple tool to benchmark the socket.io server's performance.
pomelo-robot can run in multiple mode such as single machine or distributed machines with many processes.
pomelo-robot can be also used in http benchmark with developer script.
npm install pomelo-robot
var envConfig = ;var config = ;var Robot = Robot;var robot = config;var mode = 'master';if processargvlength > 2mode = processargv2;if mode !== 'master' && mode !== 'client'throw ' mode must be master or client';if mode === 'master'robot;elsevar script = process + envConfigscript;robot;
run master server and http server, then init server status including clients with startup file. ####Arguments
robot run in client agent mode. ####Arguments
When pomelo-robot run in distribute mode, every client should be in same directory path and master could be ssh login automatic. Otherwise developer can start up agent manually. For the custom script, refer to the demo.