Closed jam231 closed 10 years ago
I've tested it, seems to work.
Some benchmarks:
Server + database --- my 4 year old laptop (2 physical cores, 4 logical). Event machine and thread pool size = 2 --- my 1 year old pc
What agent does? Send login request. 100.times do wait for response and then send request list of my orders # touches database end
Results: "Simulation with 550 agents (each sent 100 messages) finished after 22.429 sec."
Another benchmark (EventMachine threadpool = 4) "Simulation with 400 agents (each sent 700) finished after 25.382 sec." with average request -> response time: 30 ms
Unfortunately above ~550 (thread pool size = 2) or ~400 (thread pool size = 4) connections qt crashes with glib poll error...
I've bombarded server with waves of smiliar benchmarks, server still works. Closing.