07.05.2013, 14:18
Hello, is there a plugin or a script that would allow me to simulate high server load - stressing it to see what/how much players/how many command can my server take?
Try putting loops in your pawn code itself to check.For example, you connect yourself, and keep some big loops and large code on OnPlayerUpdate and GetTickCounts at the start and the end and check the speed or so.
Or put a loop executing the same number of command some 10 times and check the speed, you can get how long it would take to process 10 commands when executed at the same time. |
new a = GetTickCount();
// Replace "/mycommand" with another command you want to test
while(GetTickCount() < a+120000) CallRemoteFunction("OnPlayerCommandText", "ds", 0, "/mycommand");
// After 2 minutes...