Andreas Enge on Thu, 03 Nov 2022 15:48:44 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: timer output

Hello John,

Am Thu, Nov 03, 2022 at 02:32:29PM +0000 schrieb John Cremona:
> cpu time = 2,013 ms, real time = 421 ms.

two times are printed when you use the parallel version, recognisable
by a line such as
   threading engine: pthread
when starting GP.

Then "real time" is the wallclock time, and "cpu time" is the sum of the
CPU times spent by the different threads, the number of which is printed by
   default ("nbthreads")

I see this, for instance:
? isprime (nextprime (10^300))
cpu time = 3,220 ms, real time = 1,685 ms.
which reflects well that I have two cores (and four threads), and that
ECPP is well parallelised, apparently.