Re: public barrier functions



Hi Paul,

> But I'd be interested to see some benchmarks; see how much this
> actually matters. Run a typical program twice; once with functions and
> once with some inlines/macros. It's quite likely that in a real-world
> program, the ratio of time it actually spends doing the atomic operation
> function calls, to the amount of CPU time in general, will actually be
> rather small indeed. Such an optimisation is likely to be of little
> actual benefit, for the cost it brings.

We don't have numbers of typical programs, but we have benchmarks. Look
at

	http://bugzilla.gnome.org/show_bug.cgi?id=63621

The numbers for i386 are:

inline   : 4.376484 sec
function : 7.325000 sec
fallback : 23.984717 sec

for ppc64:

inline   : 1.961480 sec
function : 3.328593 sec
fallback : 31.004492 sec
	
Regards,
Sebastian
-- 
Sebastian Wilhelmi                 |            här ovanför alla molnen
mailto:seppi seppi de              |      är himlen så förunderligt blå
http://seppi.de                    |





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