On Thu, 26 Nov 2009, David Arturo Macias Corona wrote: Hi,
> and a summary ... > Harbour 13017, except where noted > Below are results using: > ------------------------ > hbmk2 -m -n -w -es2 -l -kmo -gc3 speedtst.prg > speedtst.exe > hbmk2 -m -n -w -es2 -l -kmo -gc3 -mt speedtst.prg > speedtst.exe > speedtst.exe --thread > speedtst.exe --thread=2 --scale > ------------------------ > and in same order > Same hardware used with OpenWatcom, gcc433, gcc335, so comparison > between C compilers are valid in this case > Strange result for OpenWatcom (13006) If you are talking about very slow MT mode then it's the cost of -bm switch. MT safe memory manager in OpenWatcom is very slow. BTW instead of using older version of SVN (13006) then you can use: set HB_USER_CFLAGS=-DHB_FM_STD_ALLOC to force default memory manager in given C compiler. > Everything is better with -DHB_FM_DL_ALLOC Thank you for your tests. I expected similar results. > Question (sorry but I do not what imply): > executables created with same source but different library type ( > OMF, a.out ) should have same performance ? It depends on internal format. It's possible that the speed will be noticeable different if two formats forces different addressing and code reallocation modes. I.e. some formats may forbid using direct memory global addresses and the code will be slower due to forced indirect addressing or runtime offset calculations. I do not know the details of OMF and a.out formats in OS/2 to given you precise answer. > Example: speedtst.exe build with gcc335 in OMF type and a.out type Your test results suggest that there is no significant speed difference between both formats. > OpenWatcom, with -DHB_FM_DL_ALLOC enabled by default > [ total application time: ]....................................15.48 > [ total real time: ]...........................................15.46 > > [ total application time: ]....................................23.55 > [ total real time: ]...........................................23.62 > > OpenWatcom, without -DHB_FM_DL_ALLOC ( and without -bm ) > > Note: Rev. 13006 > [ total application time: ]....................................15.74 > [ total real time: ]...........................................15.69 > > [ total application time: ]....................................62.94 > [ total real time: ]...........................................62.99 So in both cases OpenWatcom builds do not work in MT mode when more then one thread is created and GTOS2 is used and I would like to ask you to make tests with build switches (see my other mail) to reactivate settings which resolved the problem in the past. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
