From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7364 Path: news.gmane.org!not-for-mail From: Paul Schutte Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl perf, 20% slower than native build? Date: Wed, 8 Apr 2015 22:59:19 +0200 Message-ID: References: <20150408160507.GB31681@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7ba97a7014d63405133cce52 X-Trace: ger.gmane.org 1428526782 32406 80.91.229.3 (8 Apr 2015 20:59:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2015 20:59:42 +0000 (UTC) Cc: John Mudd To: musl@lists.openwall.com Original-X-From: musl-return-7377-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 08 22:59:35 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yfx4P-0003jN-CB for gllmg-musl@m.gmane.org; Wed, 08 Apr 2015 22:59:33 +0200 Original-Received: (qmail 22423 invoked by uid 550); 8 Apr 2015 20:59:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22405 invoked from network); 8 Apr 2015 20:59:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3l+wU/3EexP6fwcqLeevvnY3S/CIa4laETGkGTPOtps=; b=Ws1TSfg65rjCaa7B72axnbjCJ7Q1MfoUusb2qxXhgjumHzNSItJT12hKpu3711RtFZ 8oPMUZdhmdjSSXLh9LS9F3+838sKzzbafQZUjoSkYV5CIB+PsBm+UJYn5bEyO5zjk6jO k17WYWRr1PJ1encMOxoTdjk9fS8TyH4jQLdSRTI8X3yJkohBoelqglb6YTr62VcAfKIA xN9wk6Wpv+FH1bwiKHTnDvaQAWFDHDl3S+OlNC+i3eLkaFPOOEY3EZaDoV52dVlEHUQP 8tmSXaMFj4m2aYUrRrqYP4II8GoKNa+LwmSbU4ZNlxBw6J9xeUxM6UyWpwo/F+CWwpMj XeZw== X-Received: by 10.194.60.67 with SMTP id f3mr19276521wjr.28.1428526759988; Wed, 08 Apr 2015 13:59:19 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7364 Archived-At: --047d7ba97a7014d63405133cce52 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Daniel, Pardon my stupidity, but with what did you replace the memcpy ? Regards Paul On Wed, Apr 8, 2015 at 9:28 PM, Daniel Cegie=C5=82ka wrote: > 2015-04-08 21:10 GMT+02:00 John Mudd : > > > Here's output from perf record/report for libc. This looks consistent > with > > the 5% longer run time. > > > > native: > > 2.20% python libc-2.19.so [.] __memcpy_ssse3 > > > > > musl: > > 4.74% python libc.so [.] memcpy > > I was able to get twice speed-up (in my code) just by replacing memcpy > in the musl. > > Daniel > --047d7ba97a7014d63405133cce52 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Daniel,

Pardon my stupidity= , but with what did you replace the memcpy ?

Regards
= Paul

On = Wed, Apr 8, 2015 at 9:28 PM, Daniel Cegie=C5=82ka <daniel.cegielka= @gmail.com> wrote:
2015-04-= 08 21:10 GMT+02:00 John Mudd <joh= nbmudd@gmail.com>:

> Here's output from perf record/report for libc. This looks consist= ent with
> the 5% longer run time.
>
> native:
>=C2=A0 =C2=A0 =C2=A0 2.20%=C2=A0 =C2=A0python=C2=A0 libc-2.19.so=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0[.] __memcpy_ssse3

>
> musl:
>=C2=A0 =C2=A0 =C2=A0 4.74%=C2=A0 =C2=A0python=C2=A0 libc.so=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [.] memcpy

I was able to get twice speed-up (in my code) just by replacing memcpy
in the musl.

Daniel

--047d7ba97a7014d63405133cce52--