Obviously there is something wrong with all of your tests (goes to most of you). You either:
a) Do some trick with your system to make it look faster (in the test). b) The time it took to execute blablabla is fake. c) You don't really know what you're doing. d) You only test the stuff you know your system is fast at. Looking forward to ******'s tests, as atleast he know what he's doing. |
Obviously there is something wrong with all of your tests (goes to most of you). You either:
a) Do some trick with your system to make it look faster (in the test). b) The time it took to execute blablabla is fake. c) You don't really know what you're doing. d) You only test the stuff you know your system is fast at. Looking forward to ******'s tests, as atleast he know what he's doing. |
#include <a_samp> #include <dfile> #include <Fini> #define TESZT 10000 public OnFilterScriptInit() { new string[20]; format(string,sizeof(string),"super dooper string"); dfile_Create("Dfile.txt"); dfile_Create("scriptfiles/Fini.txt"); new Dfile = GetTickCount(); dfile_Open("Dfile.txt"); print("\n\n\n"); print("Writing data:"); print("----------------------------"); for(new i=0;i<TESZT;i++) { dfile_WriteString("cessil", string); } dfile_SaveFile(); printf("[DFILE] writing time: %d", GetTickCount() - Dfile); new Fini = GetTickCount(); Fini_OpenFile("Fini.txt"); for(new i=0;i<TESZT;i++) { Fini_SetStr("cessil",string); } Fini_SaveFile(); Fini_CloseFile(); printf("[FINI] writing time: %d", GetTickCount() - Fini); printf("\n\n\n"); print("Reading data:"); print("----------------------------"); Dfile = GetTickCount(); dfile_Open("Dfile.txt"); new dfilevalue, finivalue; while(GetTickCount() - Dfile < 1000) { dfile_ReadString("cessil"); dfilevalue++; } dfile_CloseFile(); printf("[DFILE] reading time: %d", dfilevalue); Fini = GetTickCount(); Fini_OpenFile("Fini.txt"); while(GetTickCount() - Fini < 1000) { Fini_GetStr("cessil"); finivalue++; } Fini_CloseFile(); printf("[FINI] reading time: %d", finivalue); return true; }
Senha=32833734 Money=0 Kills=0 Deaths=0 Ratio=0.000000 AdminLevel=5 Torcida=0 Pontos=100