#include <a_samp>
#define ITERATIONS 100000000
main()
{
new tc, tc1, tc2, tc3;
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (var / 5); }
tc1 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (5 * ((1)/(5))); }
tc2 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (5 * 0.2); }
tc3 = (GetTickCount() - tc);
printf(" Test 1: %i, Test 2: %i, Test 3: %i", tc1, tc2, tc3);
}
#include <a_samp>
#define ITERATIONS 100000000
main()
{
new tc, tc1, tc2, tc3;
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++)
{
new var = 5;
var = (var / 5);
}
tc1 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++)
{
new var = 5;
var = (5 * ((1)/(5)));
}
tc2 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++)
{
new var = 5;
var = (5 * 0.2);
}
tc3 = (GetTickCount() - tc);
printf(" Test 1: %i, Test 2: %i, Test 3: %i", tc1, tc2, tc3);
}
var = (var / 5);
var = (5 * ((1)/(5)));
var = (5 * 0.2);
#include <a_samp>
#define ITERATIONS 1000000
#define LOOPS 25
main()
{
for(new l = 0; l < LOOPS; l++) {
new tc, tc1, tc2, tc3;
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (var / 5); }
tc1 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (var * ((1)/(5))); }
tc2 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (var * 0.2); }
tc3 = (GetTickCount() - tc);
printf(" Test 1: %i, Test 2: %i, Test 3: %i", tc1, tc2, tc3); }
}
Originally Posted by My Log Files
[19:51:17] Test 1: 123, Test 2: 74, Test 3: 195
[19:51:17] Test 1: 120, Test 2: 71, Test 3: 182 [19:51:18] Test 1: 122, Test 2: 69, Test 3: 176 [19:51:18] Test 1: 123, Test 2: 69, Test 3: 175 [19:51:18] Test 1: 123, Test 2: 69, Test 3: 180 [19:51:19] Test 1: 126, Test 2: 65, Test 3: 180 [19:51:19] Test 1: 120, Test 2: 70, Test 3: 182 [19:51:19] Test 1: 123, Test 2: 65, Test 3: 182 [19:51:20] Test 1: 122, Test 2: 65, Test 3: 185 [19:51:20] Test 1: 121, Test 2: 70, Test 3: 178 [19:51:20] Test 1: 125, Test 2: 66, Test 3: 184 [19:51:21] Test 1: 128, Test 2: 66, Test 3: 182 [19:51:21] Test 1: 120, Test 2: 70, Test 3: 195 [19:51:22] Test 1: 173, Test 2: 91, Test 3: 187 [19:51:22] Test 1: 124, Test 2: 74, Test 3: 177 [19:51:22] Test 1: 130, Test 2: 68, Test 3: 195 [19:51:23] Test 1: 142, Test 2: 68, Test 3: 186 [19:51:23] Test 1: 125, Test 2: 70, Test 3: 187 [19:51:24] Test 1: 125, Test 2: 72, Test 3: 180 [19:51:24] Test 1: 122, Test 2: 68, Test 3: 188 [19:51:24] Test 1: 134, Test 2: 65, Test 3: 196 [19:51:25] Test 1: 128, Test 2: 66, Test 3: 185 [19:51:25] Test 1: 124, Test 2: 70, Test 3: 181 [19:51:26] Test 1: 126, Test 2: 76, Test 3: 196 [19:51:26] Test 1: 129, Test 2: 67, Test 3: 186 |
#include <a_samp>
#define ITERATIONS 1000000
#define LOOPS 25
main()
{
for(new l = 0; l < LOOPS; l++) {
new tc, tc1, tc2 /* , tc3 */;
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = random(10) + 1;
var = (var / 5); }
tc1 = (GetTickCount() - tc);
tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = random(10) + 1;
var = (var * ((1)/(var))); }
tc2 = (GetTickCount() - tc);
/* tc = GetTickCount();
for(new i = 0; i < ITERATIONS; i++) {
new var = 5;
var = (var * 0.2); }
tc3 = (GetTickCount() - tc); */
printf(" Test 1: %i, Test 2: %i", tc1, tc2); }
}
Originally Posted by Log Files
[19:58:39] Test 1: 172, Test 2: 181
[19:58:39] Test 1: 193, Test 2: 190 [19:58:39] Test 1: 182, Test 2: 198 [19:58:40] Test 1: 185, Test 2: 200 [19:58:40] Test 1: 187, Test 2: 189 [19:58:40] Test 1: 194, Test 2: 190 [19:58:41] Test 1: 184, Test 2: 193 [19:58:41] Test 1: 191, Test 2: 192 [19:58:42] Test 1: 181, Test 2: 186 [19:58:42] Test 1: 192, Test 2: 204 [19:58:42] Test 1: 186, Test 2: 187 [19:58:43] Test 1: 180, Test 2: 187 [19:58:43] Test 1: 181, Test 2: 272 [19:58:44] Test 1: 208, Test 2: 205 [19:58:44] Test 1: 187, Test 2: 194 [19:58:44] Test 1: 195, Test 2: 206 [19:58:45] Test 1: 188, Test 2: 192 [19:58:45] Test 1: 186, Test 2: 196 [19:58:46] Test 1: 187, Test 2: 191 [19:58:46] Test 1: 202, Test 2: 198 [19:58:46] Test 1: 191, Test 2: 193 [19:58:47] Test 1: 186, Test 2: 193 [19:58:47] Test 1: 193, Test 2: 206 [19:58:47] Test 1: 188, Test 2: 193 [19:58:48] Test 1: 185, Test 2: 191 |