07.06.2015, 22:01
You can show me the code of speed tests used?
Why this speed test , and the speed test of the post , show me the same?
(i make this speed test, and for some reason do not show me Difference)
PHP код:
// INCLUDES:
#include <a_samp>
#include <zcmd>
// MAIN:
main()
{
print("Development Mode: variable_benchmark.amx");
new tick_1;
print("ZCMD:");
for(new o; o != 5; o++)
{
tick_1 = GetTickCount();
for(new i; i != 100000; i++)
{
cmd_loop(0, "\1");
cmd_format(0, "name");
cmd_name(0, "3");
}
printf("%d. %d ms", o, GetTickCount() - tick_1);
}
}
CMD:loop(playerid, params[])
return 1;
CMD:format(playerid, params[])
return 1;
CMD:name(playerid, params[])
return 1;
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}
Код:
[16:21:48] ZCMD: [16:21:48] 0. 26 ms [16:21:48] 1. 22 ms [16:21:48] 2. 27 ms [16:21:48] 3. 21 ms [16:21:48] 4. 29 ms [16:22:53] iZCMD: [16:22:53] 0. 29 ms [16:22:53] 1. 23 ms [16:22:53] 2. 29 ms [16:22:53] 3. 23 ms [16:22:53] 4. 28 ms