This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] Make bindresvport() function to multithread-safe
- From: Peng Haitao <penght at cn dot fujitsu dot com>
- To: "Carlos O'Donell" <carlos at systemhalted dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 16 Oct 2012 13:31:46 +0800
- Subject: Re: [PATCH v2] Make bindresvport() function to multithread-safe
- References: <1348019109-23363-1-git-send-email-penght@cn.fujitsu.com> <CAE2sS1gRWJ2ncMUbbnhwQcR0XH_VQW_y8+HLZV_H9VSSsReq0Q@mail.gmail.com> <201209191425.21071.vapier@gentoo.org> <505FFDFA.7000701@cn.fujitsu.com> <50607769.7030203@mentor.com> <50656D39.6010204@cn.fujitsu.com> <CAE2sS1gbDDp9zCnYvY073FCj9FgTSuHUzQo6phzsGH58d0zZtw@mail.gmail.com>
On 09/28/2012 10:23 PM, Carlos O'Donell wrote:
>> Performance counter stats for './bindresvport_mul_test' (100 runs):
>>
>> 116,481,478 instructions # 0.00 insns per cycle ( +- 0.25% )
>>
>> 0.023839225 seconds time elapsed ( +- 2.04% )
>>
>> Performance counter stats for './bindresvport_mul_test' (100 runs):
>>
>> 124,069,053 instructions # 0.00 insns per cycle ( +- 0.32% )
>>
>> 0.021486935 seconds time elapsed ( +- 0.84% )
>>
>
> How do you justify the performance gain?
>
After test many times, the performance goes a little down.
Please refer to URL:
http://sourceware.org/ml/libc-alpha/2012-10/msg00416.html
Thanks.
--
Best Regards,
Peng