Après avoir fait un speed-test non-erroné, STRCMP apparait plus rapide que ZCMD, sur 10 000 commandes, le tout sur un pied d'égalité (c'est normal que ZCMD soit plus rapide si on appelle la callback de la commande directement et non OnPlayerCommandText)
main()
{
print("Testing Started");
new
i = 0,
x = 0,
StartTick[3]
;
StartTick[0] = GetTickCount();
while(++i != ITERATIONS)
{
OnPlayerCommandText(0, "zcmdcommand");
}
StartTick[1] = GetTickCount();
while(++x != ITERATIONS)
{
zcmd_OnPlayerCommandText(0, "/strcmpcommand");
}
StartTick[2] = GetTickCount();
printf( "ZCMD vs STRCMP - %d Commands", ITERATIONS);
printf( "ZCMD took %d ms to execute %d commands", ( StartTick[1] - StartTick[0] ), ITERATIONS );
printf( "STRCMP took %d ms to execute %d commands", ( StartTick[2] - StartTick[1] ), ITERATIONS );
print("Testing Ended, sir.");
}