This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3] Make fprintf() function to multithread-safe
On Tuesday, July 24, 2012 15:36:52 Peng Haitao wrote:
> [...]
> > Performance counter stats for './fprintf':
>
> 30,029,273,153 instructions # 0.00 insns per
> cycle
>
> 7.533755240 seconds time elapsed
> [...]
> # perf stat -e instructions -- ./fprintf_new > /dev/null
>
> Performance counter stats for './fprintf_new':
>
> 39,694,838,263 instructions # 0.00 insns per
> cycle
>
> 9.690116102 seconds time elapsed
So, the overhead is in this case 25 per cent? That's a lot IMO.
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126