On Mon, 02 Jun 2008, Szakáts Viktor wrote:

Hi Viktor,

> >Just like for most of others. Probably only HB_GUI is HB_NO_PROFILER
> >are important because pending code is executed in each HVM loop (for
> >each PCODE). I'll make speed test for HB_GUI to check current  
> >difference.

   #define N_LOOP 100000000
   proc main()
   local t, i
   t:=secondsCPU()
   for i:=1 to N_LOOP
   next
   ? secondsCPU()-t
   return

In this code the speed difference is about 4.3% (12.77 vs. 12.24).
Not too much but noticeable. Of course it's not realistic example
and in normal code which calls functions the difference will be
much smaller anyhow it illustrates the cost of single if() in main
HVM loop.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to