11.08.2010, 21:23
Quote:
Code:
CMD:testunit(playerid, params[]) { new HasAccount[MAX_PLAYERS], test[2][2], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); test[0][0] = GetTickCount(); for(new gg = 0; gg < 100000; gg ++ ) SetPVarInt(playerid, "HasAccount", 1); test[0][1] = GetTickCount(); test[1][0] = GetTickCount(); for(new gg = 0; gg < 100000; gg ++ ) HasAccount[playerid] = true; test[1][1] = GetTickCount(); printf("[PVARS TEST] Test Start: %d | Test End: %d | Test Duration: %d", test[0][0], test[0][1], test[0][1] - test[0][0]); printf("[VARIABLE TEST] Test Start: %d | Test End: %d | Test Duration: %d", test[1][0], test[1][1], test[1][1] - test[1][0]); return 1; } [20:54:47] [PVARS TEST] Test Start: 98331 | Test End: 98354 | Test Duration: 23 [20:54:47] [VARIABLE TEST] Test Start: 98354 | Test End: 98357 | Test Duration: 3 |