From owner-dev-commits-src-all@freebsd.org Sun Jun 20 19:46:48 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AA5E46585F8; Sun, 20 Jun 2021 19:46:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G7NTN4NMyz4gLq; Sun, 20 Jun 2021 19:46:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 59590262E2; Sun, 20 Jun 2021 19:46:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:1417:3c1a:7c92:9a4a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 5D42549409; Sun, 20 Jun 2021 21:46:46 +0200 (CEST) From: Dimitry Andric Message-Id: <2A6DC940-653A-4B96-8103-DC3DE3F134AD@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_2DFF35CE-9881-4F29-B7B2-1C564A557904"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: git: 23408297fbf3 - main - Merge llvm-project 12.0.1 rc2 Date: Sun, 20 Jun 2021 21:46:32 +0200 In-Reply-To: Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org To: Dmitry Chagin References: <202106191811.15JIB4nu002236@gitrepo.freebsd.org> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2021 19:46:48 -0000 --Apple-Mail=_2DFF35CE-9881-4F29-B7B2-1C564A557904 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Jun 2021, at 14:49, Dmitry Chagin wrote: >=20 > On Sat, Jun 19, 2021 at 06:11:04PM +0000, Dimitry Andric wrote: >> The branch main has been updated by dim: >>=20 >> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D23408297fbf3089f0388a8873b02fa75= ab3f5bb9 >>=20 >> commit 23408297fbf3089f0388a8873b02fa75ab3f5bb9 >> Merge: cac129e60300 e4bbddaec868 >> Author: Dimitry Andric >> AuthorDate: 2021-06-19 10:06:00 +0000 >> Commit: Dimitry Andric >> CommitDate: 2021-06-19 18:09:28 +0000 >>=20 >> Merge llvm-project 12.0.1 rc2 >>=20 >> This updates llvm, clang, compiler-rt, libc++, libunwind, lld, = lldb and >> openmp to llvmorg-12.0.1-rc2-0-ge7dac564cd0e, a.k.a. 12.0.1 rc2. >>=20 >> PR: 255570 >> MFC after: 6 weeks >>=20 > hi! with 11 clang kernel build time is about 60 sec, with 12.0.0 and > 12.0.1 rc2 build time increased to 500 sec. Did you previously have llvm/clang assertions turned off (via MK_LLVM_ASSERTIONS=3Dno)? I did a few measurements of "make -j32 buildkernel", on main-n247475-9d1cafb3049, with clang 11.0.1 and clang 12.0.1 (both with assertions turned off, and statically linked: clang 11.0.1 (n=3D5): real user sys 138.65 3145.23 285.25 129.00 3240.73 290.61 126.38 3244.03 284.76 128.90 3250.95 268.71 136.42 3250.73 267.93 clang 12.0.1 (n=3D5): real user sys 129.16 3306.13 291.84 128.18 3308.14 284.32 128.77 3301.35 281.90 141.37 3293.22 282.20 129.93 3304.08 284.47 $ ministat -A clang1101-real.txt clang1201-real.txt x clang1101-real.txt + clang1201-real.txt N Min Max Median Avg = Stddev x 5 126.38 138.65 129 131.87 = 5.3354662 + 5 128.18 141.37 129.16 131.482 = 5.5639707 No difference proven at 95.0% confidence $ ministat -A clang1101-user.txt clang1201-user.txt x clang1101-user.txt + clang1201-user.txt N Min Max Median Avg = Stddev x 5 3145.23 3250.95 3244.03 3226.334 = 45.550423 + 5 3293.22 3308.14 3304.08 3302.584 = 5.8070759 Difference at 95.0% confidence 76.25 +/- 47.3552 2.36336% +/- 1.50191% (Student's t, pooled s =3D 32.4697) Before I merged 12.0.1, I did the same sort of measurement, but for "make -j32 buildworld buildkernel" (with CROSS_TOOLCHAIN set so the bootstrap compiler isn't built), and this showed roughly similar results: $ ministat -A clang1101-real.txt clang1200-real.txt x clang1101-real.txt + clang1200-real.txt N Min Max Median Avg = Stddev x 5 1410.24 1461.04 1434.2 1435.296 = 18.210247 + 5 1461.54 1499.69 1462.07 1469.976 = 16.667199 Difference at 95.0% confidence 34.68 +/- 25.4583 2.41623% +/- 1.79718% (Student's t, pooled s =3D 17.4558) $ ministat -A clang1101-user.txt clang1200-user.txt x clang1101-user.txt + clang1200-user.txt N Min Max Median Avg = Stddev x 5 37495.09 37913.2 37750.64 37750.734 = 165.00886 + 5 38133.12 38396.77 38390.77 38324.132 = 113.63363 Difference at 95.0% confidence 573.398 +/- 206.617 1.51891% +/- 0.552972% (Student's t, pooled s =3D 141.67) So basically ~2% slower. It's would be a little tricky to find out if there is any particular upstream commit that might be responsible, as the difference is so small. I think I'll also compare the performance with assertions enabled, and MK_SHARED_TOOLCHAIN=3Dyes, which should be worse than the above, but = still comparable between 11.0 and 12.0. -Dimitry --Apple-Mail=_2DFF35CE-9881-4F29-B7B2-1C564A557904 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYM+bGAAKCRCwXqMKLiCW owb9AJ9ZMH0vbbpWf99kjyKqBk+F/m0jDQCg8n9AFM9ADGmFuTXkFR7Bamrc7Dw= =yc3r -----END PGP SIGNATURE----- --Apple-Mail=_2DFF35CE-9881-4F29-B7B2-1C564A557904--