Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward SpeedTest(); public SpeedTest(){
- print("- Creating Files (SII)");
- if(INI_Open(TESTFILE)) {
- INI_WriteString("Teste","Chegou");
- INI_Save();
- INI_Close();
- }
- new tick;
- print("- Starting Test (SII)");
- tick=GetTickCount();
- for(new i;i<TESTS;i++)
- {
- if(INI_Open(TESTFILE)) {
- INI_WriteString("Teste2","Chegou");
- INI_Close();
- }
- }
- printf("(SII)Tempo: %d", GetTickCount()-tick);
- print(" ");
- print(" ");
- }
- forward SpeedTest1(); public SpeedTest1(){
- print("- Creating Files (RocksFiles)");
- if(!RocksFile_Existe(TESTFILE2)) {
- RocksFile_Criar(TESTFILE2);
- RocksFile_Carregar(TESTFILE2,TESTFILE2);
- RocksFile_Escrever(TESTFILE2,"Teste","Chegou");
- RocksFile_Salvar(TESTFILE2);
- }
- new tick;
- print("- Starting Test(RocksFiles)");
- tick=GetTickCount();
- for(new i;i<TESTS;i++)
- {
- if(RocksFile_Existe(TESTFILE2)) {
- RocksFile_Escrever(TESTFILE2,"Teste2","Chegou");
- }
- }
- printf("(RocksFiles)Tempo: %d -", GetTickCount()-tick);
- print(" ");
- print(" ");
- }
- forward SpeedTest2(); public SpeedTest2(){
- print("- Creating Files(DINI)");
- if(!dini_Exists(TESTFILE3)) {
- dini_Create(TESTFILE3);
- dini_Set(TESTFILE3,"Teste","Chegou");
- }
- new tick;
- print("- Starting Test(DINI)");
- tick=GetTickCount();
- for(new i;i<TESTS;i++)
- {
- if(dini_Exists(TESTFILE3)) {
- dini_Set(TESTFILE3,"Teste2","Chegou");
- }
- }
- printf("(DINI)Tempo: %d -", GetTickCount()-tick);
- print(" ");
- print(" ");
- }
- forward StartTest(); public StartTest() {
- print("Starting Test====");
- SpeedTest();
- SpeedTest1();
- SpeedTest2();
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment