memtst.prg 9410 2008-09-15 21:09:27Z druzus $ 09/19/08 09:56:39 Harbour 1.1.0dev (Rev. 9444) (MT), Windows XP 5.1.2600 Service Pack 2 Sep 19 2008 09:49:15 Borland C++ 5.8.2 (32 bit)
09/19/08 10:00:03 Harbour 1.1.0dev (Rev. 9444) (MT), Windows XP 5.1.2600 Service Pack 2 Sep 19 2008 08:53:57 Open Watcom C++ 12.70.8 (32 bit) ST MT BC WC BC WC =========== =========== c:=L_C -> 0.16 0.14 0.30 0.28 n:=L_N -> 0.14 0.13 0.20 0.23 d:=L_D -> 0.13 0.13 0.19 0.25 c:=M_C -> 0.16 0.14 0.31 0.27 n:=M_N -> 0.14 0.14 0.22 0.25 d:=M_D -> 0.14 0.13 0.25 0.25 (sh) c:=F_C -> 0.34 0.28 0.48 0.39 (sh) n:=F_N -> 0.47 0.36 0.50 0.44 (sh) d:=F_D -> 0.28 0.25 0.36 0.39 (ex) c:=F_C -> 0.34 0.30 0.50 0.42 (ex) n:=F_N -> 0.44 0.38 0.50 0.48 (ex) d:=F_D -> 0.30 0.25 0.38 0.39 n:=o:GenCode -> 0.39 0.38 0.83 0.77 n:=o[8] -> 0.30 0.30 0.55 0.52 round(i/1000,2) -> 0.53 0.48 0.89 1.00 str(i/1000) -> 1.36 0.95 1.77 1.47 val(a3[i%ARR_LEN+1]) -> 1.06 1.05 1.56 1.67 dtos(j+i%10000-5000) -> 1.25 0.98 1.80 1.78 eval({||i%ARR_LEN}) -> 0.56 0.53 1.03 1.03 eval({|x|x%ARR_LEN},i) -> 0.58 0.56 1.16 1.23 eval({|x|f1(x)},i) -> 0.92 0.77 1.70 1.89 &('f1('+str(i)+')') -> 5.61 5.19 7.47 6.77 eval([&('{|x|f1(x)}')]) -> 0.97 0.81 1.72 1.97 j := valtype(a)+valtype(i) -> 0.91 0.88 1.63 1.77 j := str(i%100,2) $ a2[i%ARR_LEN+1] -> 2.05 1.63 2.84 2.73 j := val(a2[i%ARR_LEN+1]) -> 1.28 1.25 1.83 2.03 j := a2[i%ARR_LEN+1] == s -> 0.78 0.73 1.31 1.31 j := a2[i%ARR_LEN+1] = s -> 0.83 0.72 1.44 1.38 j := a2[i%ARR_LEN+1] >= s -> 0.84 0.75 1.38 1.36 j := a2[i%ARR_LEN+1] < s -> 0.86 0.73 1.34 1.42 aadd(aa,{i,j,s,a,a2,t,bc}) -> 4.42 2.13 4.48 3.66 f0() -> 0.31 0.25 0.59 0.67 f1(i) -> 0.52 0.44 0.84 0.97 f2(c[8]) -> 0.34 0.34 0.77 0.83 f2(c[40000]) -> 0.36 0.34 0.78 0.73 f2(@c[40000]) -> 0.34 0.28 0.66 0.80 f2(c[40000]); c2:=c -> 0.55 0.48 1.00 1.08 f2(@c[40000]); c2:=c -> 0.52 0.48 0.97 1.05 f3(a,a2,c,i,j,t,bc) -> 0.92 0.78 1.78 1.83 f2(a2) -> 0.42 0.33 0.83 0.81 s:=f4() -> 1.11 0.95 1.63 1.63 s:=f5() -> 0.59 0.58 1.11 1.20 ascan(a,i%ARR_LEN) -> 0.78 0.69 1.38 1.22 ascan(a2,c+chr(i%64+64)) -> 2.50 1.89 3.75 3.22 ascan(a,{|x|x==i%ARR_LEN}) -> 6.44 5.98 11.42 12.55 ================================================================= ===== ===== total application time: 52.11 44.36 81.11 83.22 total real time: 54.00 46.05 83.78 85.81 memtst.prg 9410 2008-09-15 21:09:27Z druzus $ 09/19/08 10:11:37 Harbour 1.1.0dev (Rev. 9444) (MT), Windows XP 5.1.2600 Service Pack 2 Sep 19 2008 09:49:15 Borland C++ 5.8.2 (32 bit) 09/19/08 10:14:33 Harbour 1.1.0dev (Rev. 9444) (MT), Windows XP 5.1.2600 Service Pack 2 Sep 19 2008 08:53:57 Open Watcom C++ 12.70.8 (32 bit) ST MT BC WC BC WC ===================== ===================== testing single large memory blocks allocation and freeing... CPU time: 1.08 sec. 1.22 sec. 1.05 sec. 1.25 sec. real time: 1.08 sec. 1.28 sec. 1.11 sec. 1.30 sec. testing many large memory blocks allocation and freeing... CPU time: 8.45 sec. 7.73 sec. 8.61 sec. 7.88 sec. real time: 8.77 sec. 7.95 sec. 8.92 sec. 8.05 sec. testing large memoryblock reallocation with intermediate allocations... CPU time: 1.80 sec. 2.19 sec. 1.86 sec. 2.31 sec. real time: 1.84 sec. 2.31 sec. 1.99 sec. 2.41 sec. Best regards, Saulius _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour