[gecode-users] quick question

penche21 penche21 penche21 at hotmail.com
Sun Apr 15 15:31:45 CEST 2007


ok! thanks =)

>From: "Mikael Zayenz Lagerkvist" <zayenz at gmail.com>
>To: "penche21 penche21" <penche21 at hotmail.com>
>CC: users at gecode.org
>Subject: Re: [gecode-users] quick question
>Date: Sun, 15 Apr 2007 15:12:25 +0200
>
>On 4/14/07, penche21 penche21 <penche21 at hotmail.com> wrote:
>>- I use Options.java class for benchmarking. The problem is runtimes 
>>depends
>>on System.nanoTime() method. So, what I get is basically elapsed time for
>>program of that time. Is there a way to get the actual user time which 
>>does
>>not depend on load on my.
>
>There is no possibility that I know of in Java to get user-time.
>However, if it were possible I doubt that it would be useful. On my
>Windows-machine at least, user-time for a Gecode/J program does not
>include time spent in native code, which naturally includes the bulk
>of time spent by the program.
>
>I would recommend that you do your experiments on a machine that is as
>unloaded as possible, and that you increase the number of samples so
>that you get a low enough deviation. Also, the timenogc mode can be
>useful. It tries to force Java to do a garbage collection between each
>run of the problem, although there is no guarantee.
>
>Also, please remember that Gecode/J is not as fast as Gecode, the
>Java-C++ conversions
>layer adds quite some overhead.
>
>Cheers,
>Mikael
>
>--
>Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/

_________________________________________________________________
Sohbet ve eglence, web kamera ve sesli sohbet Messenger'de. 
http://messenger.msn.com/?mkt=tr&DI=3490&XAPID=2584





More information about the gecode-users mailing list