comp.lang.ada
 help / color / mirror / Atom feed
From: h_poincare <noreply_at_orange.fr>
Subject: Re: Task execution time test
Date: Thu, 30 Dec 2010 00:00:10 +0100
Date: 2010-12-29T23:59:59+01:00	[thread overview]
Message-ID: <4d1bbd6e$0$7701$ba4acef3@reader.news.orange.fr> (raw)
In-Reply-To: <c0x1bxkh3iba.1wxmlynt1dx62$.dlg@40tude.net>

Le 26/12/2010 11:25, Dmitry A. Kazakov a �crit :
> Here is a small test for task execution time.
>
> Five worker tasks are used to generate background CPU load. When the
> measured task enters delay 0.1ms (on a system where delay is non-busy) it
> should lose the CPU prematurely.
>
> Under at least some Windows systems the test might fail because Windows
> performance counters are CPU quants 1ms or 10ms, depending on settings.
>

> On my Windows XP SP3 the test yields 0-0.
>

Here are the measures of the code on my Windows machines
which tend to prove that the scheduling is correct.

On Windows Vista SP2 :
For 1_000 loops
Seconds 0 Fraction 0.093600600
For 10_000 loops
Seconds 1 Fraction 0.029606600

On Windows XP2002 SP3 :
For 1_000 loops
Seconds 0 Fraction 0.125000000
Seconds 0 Fraction 0.109375000
For 10_000 loops
Seconds 1 Fraction 0.140625000

GPS 4.4.1 (20091215) hosted on i686-pc-mingw32
GNAT GPL 2010 (20100603)

I am just curious to know how to get/set Windows performance counters
-----------------------------------------------
Regards
Fran�ois FABIEN



  reply	other threads:[~2010-12-29 23:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-26 10:25 Task execution time test Dmitry A. Kazakov
2010-12-29 23:00 ` h_poincare [this message]
2010-12-30  8:54   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox