From nobody Sat Sep 23 14:00:38 2023 X-Original-To: multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rt9lB2LvWz4tjJy for ; Sat, 23 Sep 2023 14:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rt9lB0PX7z3f5v for ; Sat, 23 Sep 2023 14:00:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695477638; a=rsa-sha256; cv=none; b=LgoJoqJlbWSmolbaEtllx49a2x+ke57kt+s7nTWvGaOZorYw/f+iL7wIpQ30Xo8bm9uwL5 apVXd3oXXwfD7lPI9E7pnpeDLtF/FGwHTGuKmKZZ9YbScHMK5divV693eM/TcX8Ufmc4pg WYCDxCJDTaYL5rItMMYgp9dT9nlactwVxcWP2Ki8EgN0/pqvrc//GhzngWc2wOv+53rBIM pWEG1ytFgIOhcleQZvPmy3BzjaWrNbpdrLv9xs7w7mDArSJi1UEVRzi3t/BZUNM4ufrEN9 zLpP+0lkOd3O2OkbCg9EY85VXmNhleZaONyDZedOBNqBMw1suuAi8VxGp8xY5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695477638; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RPA+27YI3zuO4o1WKLsd8jkmgqBMTUXnhvpgvQ1YUyc=; b=LLcFVZnm9HUoGuoU1QOwVZdzf8hmzLHaj57bbz8OgM3T1iilzTvYgYEwJH1v9l83+TnS87 Cj/uKVOizXlaKn5SAxYXAiO9Cw7f+vp665AnvfPOfAw83eXl29St3rkRLJ/niNl02axSgw wdYKydGGvRu2uhz4jQyouJdckV4mk2hBRAUOE5+K0OsidTA+TWQ06FkwhmaOWVKHTB4LWC S2ugkw715LGwZpwlJZ5cxazAXsqz5agNRiM7pRXGLNuU+OpE7JUEWffH6GxsrDRe9LG/xy RJcXevy+BDuH52ZIO907uhvlt51vLVap8VEcd87pJTB4KhayrbyOzbSH8M9AvQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rt9l96WWlz15lV for ; Sat, 23 Sep 2023 14:00:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38NE0bkI067432 for ; Sat, 23 Sep 2023 14:00:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38NE0bEq067431 for multimedia@FreeBSD.org; Sat, 23 Sep 2023 14:00:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 271798] multimedia/ffmpeg: Enable LTO by default on aarch64 and amd64 Date: Sat, 23 Sep 2023 14:00:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: diizzy@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271798 --- Comment #3 from Daniel Engberg --- It is faster but not by much, might be different on other archs Test setup: FreeBSD 14.0-BETA3 (amd64) Ryzen 7 7900 with CPUTYPE set to znver4 in /etc/make.conf ###### Decode MPEG-4 (XviD) ffmpeg -benchmark -hide_banner -i sample-mpeg4.avi -map 0:v -f null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D13.090s stime=3D1.264s rtime=3D1.746s bench: maxrss=3D60780kB bench: utime=3D13.161s stime=3D1.212s rtime=3D1.749s bench: maxrss=3D58996kB bench: utime=3D13.116s stime=3D1.404s rtime=3D1.754s bench: maxrss=3D62712kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D13.248s stime=3D1.294s rtime=3D2.067s bench: maxrss=3D57208kB bench: utime=3D13.377s stime=3D1.062s rtime=3D1.806s bench: maxrss=3D56084kB bench: utime=3D13.286s stime=3D1.198s rtime=3D1.812s bench: maxrss=3D59928kB ###### Decode H264 ffmpeg -benchmark -hide_banner -i sample-h264.mkv -map 0:v -f null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D844.833s stime=3D18.668s rtime=3D90.596s bench: maxrss=3D210632kB bench: utime=3D847.122s stime=3D17.699s rtime=3D90.694s bench: maxrss=3D206476kB bench: utime=3D842.610s stime=3D17.406s rtime=3D90.498s bench: maxrss=3D209076kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D845.918s stime=3D17.349s rtime=3D90.132s bench: maxrss=3D208204kB bench: utime=3D844.163s stime=3D17.513s rtime=3D90.112s bench: maxrss=3D208424kB bench: utime=3D850.070s stime=3D17.515s rtime=3D90.462s bench: maxrss=3D207528kB ###### Decode HEVC ffmpeg -benchmark -hide_banner -i sample-h265.mkv -map 0:v -f null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D1153.633s stime=3D9.111s rtime=3D194.839s bench: maxrss=3D269004kB bench: utime=3D1152.164s stime=3D8.431s rtime=3D194.523s bench: maxrss=3D266340kB bench: utime=3D1150.939s stime=3D8.937s rtime=3D194.489s bench: maxrss=3D271228kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D1159.971s stime=3D9.785s rtime=3D195.534s bench: maxrss=3D266032kB bench: utime=3D1157.997s stime=3D8.402s rtime=3D195.144s bench: maxrss=3D266232kB bench: utime=3D1159.178s stime=3D8.512s rtime=3D195.363s bench: maxrss=3D266276kB ###### Decode MPEG-2 (HDTV) and deinerlace using bwdif ffmpeg -benchmark -hide_banner -i sample.tp -map 0:v -vf bwdif -f null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D1030.029s stime=3D33.336s rtime=3D109.380s bench: maxrss=3D70504kB bench: utime=3D1027.714s stime=3D34.623s rtime=3D109.114s bench: maxrss=3D69032kB bench: utime=3D1026.165s stime=3D34.285s rtime=3D109.475s bench: maxrss=3D68920kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D1032.744s stime=3D34.641s rtime=3D109.661s bench: maxrss=3D68444kB bench: utime=3D1034.172s stime=3D34.125s rtime=3D109.460s bench: maxrss=3D69872kB bench: utime=3D1035.130s stime=3D33.864s rtime=3D109.430s bench: maxrss=3D68116kB ###### Resample audio from 44100Hz to 48000Hz ffmpeg -benchmark -hide_banner -i sample.mp3 -ar 48000 -f null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D2.947s stime=3D0.263s rtime=3D2.672s bench: maxrss=3D28296kB bench: utime=3D3.131s stime=3D0.436s rtime=3D2.848s bench: maxrss=3D28324kB bench: utime=3D3.132s stime=3D0.317s rtime=3D2.798s bench: maxrss=3D28276kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D3.573s stime=3D0.491s rtime=3D4.022s bench: maxrss=3D28320kB bench: utime=3D3.484s stime=3D0.302s rtime=3D3.132s bench: maxrss=3D28312kB bench: utime=3D3.323s stime=3D0.277s rtime=3D2.987s bench: maxrss=3D28312kB ###### Audio calculate EBUR128 values ffmpeg -benchmark -hide_banner -i sample.mp3 -filter_complex ebur128 -f nul= l - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D5.301s stime=3D0.487s rtime=3D6.268s bench: maxrss=3D31820kB bench: utime=3D4.928s stime=3D0.365s rtime=3D4.748s bench: maxrss=3D31852kB bench: utime=3D5.195s stime=3D0.446s rtime=3D4.925s bench: maxrss=3D31844kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D5.667s stime=3D0.612s rtime=3D5.283s bench: maxrss=3D31184kB bench: utime=3D5.151s stime=3D0.357s rtime=3D4.917s bench: maxrss=3D31184kB bench: utime=3D5.052s stime=3D0.271s rtime=3D4.769s bench: maxrss=3D31200kB ###### Audio calculate ReplayGain ffmpeg -benchmark -hide_banner -i sample.mp3 -filter_complex replaygain -f = null - =3D=3D=3D LTO =3D=3D=3D bench: utime=3D5.558s stime=3D0.429s rtime=3D5.230s bench: maxrss=3D29412kB bench: utime=3D5.504s stime=3D0.383s rtime=3D5.184s bench: maxrss=3D29420kB bench: utime=3D5.222s stime=3D0.169s rtime=3D4.942s bench: maxrss=3D29400kB =3D=3D=3D Plain =3D=3D=3D bench: utime=3D5.442s stime=3D0.434s rtime=3D5.178s bench: maxrss=3D28752kB bench: utime=3D5.393s stime=3D0.281s rtime=3D5.083s bench: maxrss=3D28768kB bench: utime=3D5.295s stime=3D0.314s rtime=3D5.062s bench: maxrss=3D28756kB ###### File sizes =3D=3D=3D LTO =3D=3D=3D ls -l work/stage/usr/local/bin/ff* -rwxr-xr-x 1 root wheel 270928 Sep 23 15:50 work/stage/usr/local/bin/ffmpeg -rwxr-xr-x 1 root wheel 168344 Sep 23 15:50 work/stage/usr/local/bin/ffpro= be ls -l work/stage/usr/local/lib/lib*.so*.*.* -rwxr-xr-x 1 root wheel 16656888 Sep 23 15:50 work/stage/usr/local/lib/libavcodec.so.60.3.100 -rwxr-xr-x 1 root wheel 27784 Sep 23 15:50 work/stage/usr/local/lib/libavdevice.so.60.1.100 -rwxr-xr-x 1 root wheel 5668272 Sep 23 15:50 work/stage/usr/local/lib/libavfilter.so.9.3.100 -rwxr-xr-x 1 root wheel 3308024 Sep 23 15:50 work/stage/usr/local/lib/libavformat.so.60.3.100 -rwxr-xr-x 1 root wheel 880224 Sep 23 15:50 work/stage/usr/local/lib/libavutil.so.58.2.100 -rwxr-xr-x 1 root wheel 67104 Sep 23 15:50 work/stage/usr/local/lib/libpostproc.so.57.1.100 -rwxr-xr-x 1 root wheel 126760 Sep 23 15:50 work/stage/usr/local/lib/libswresample.so.4.10.100 -rwxr-xr-x 1 root wheel 1449664 Sep 23 15:50 work/stage/usr/local/lib/libswscale.so.7.1.100 =3D=3D=3D Plain =3D=3D=3D ls -l work/stage/usr/local/bin/ff* -rwxr-xr-x 1 root wheel 279688 Sep 23 15:46 work/stage/usr/local/bin/ffmpeg -rwxr-xr-x 1 root wheel 183200 Sep 23 15:46 work/stage/usr/local/bin/ffpro= be ls -l work/stage/usr/local/lib/lib*.so*.*.* -rwxr-xr-x 1 root wheel 16418296 Sep 23 15:46 work/stage/usr/local/lib/libavcodec.so.60.3.100 -rwxr-xr-x 1 root wheel 28112 Sep 23 15:46 work/stage/usr/local/lib/libavdevice.so.60.1.100 -rwxr-xr-x 1 root wheel 5527904 Sep 23 15:46 work/stage/usr/local/lib/libavfilter.so.9.3.100 -rwxr-xr-x 1 root wheel 2622664 Sep 23 15:46 work/stage/usr/local/lib/libavformat.so.60.3.100 -rwxr-xr-x 1 root wheel 839488 Sep 23 15:46 work/stage/usr/local/lib/libavutil.so.58.2.100 -rwxr-xr-x 1 root wheel 67536 Sep 23 15:46 work/stage/usr/local/lib/libpostproc.so.57.1.100 -rwxr-xr-x 1 root wheel 127464 Sep 23 15:46 work/stage/usr/local/lib/libswresample.so.4.10.100 -rwxr-xr-x 1 root wheel 1483240 Sep 23 15:46 work/stage/usr/local/lib/libswscale.so.7.1.100 --=20 You are receiving this mail because: You are the assignee for the bug.=