public OnPluginStart() { new Handle:queue = CreateQueue(); new Float:startTime = GetEngineTime(); for (new j=0; j<1000; j++) { for (new i=0; i<2000; i++) { PushQueueCell(queue, 123); } for (new i=0; i<1000; i++) { new test = FrontQueueCell(queue); if (test != 123) { PrintToServer("error at %d", GetQueueSize(queue)); break; } PopQueue(queue); } for (new i=0; i<1000; i++) { PushQueueCell(queue, 123); } for (new i=0; i<2000; i++) { new test = FrontQueueCell(queue); if (test != 123) { PrintToServer("error at %d", GetQueueSize(queue)); break; } PopQueue(queue); } } PrintToServer("queue test ok"); PrintToServer("time: %fs", GetEngineTime()-startTime); }