I made alternate PKGBUILDs: SSE3, AVX, AVX2. (makepkg -p PKGBUILD.avx2
)
However, there is no point making dedicated packages for each because there is no performance benefit from using different versions.
The "normal" version ("AVX") does reference avx2 in the config, but the exact compiler flags are unspecified. All 64-bit versions contain AVX and AVX2 instructions. So too do the Chromium binaries from the official Arch repos. Chromium-based browsers probably detect processor capabilities at runtime, so attempting to target specific instruction sets would not be expected to significantly improve performance.
Here are my results from browserbench.org speedometer 2.1, using fresh profiles:
SSE3
: 83.8±1.0AVX
: 83.8±1.0 (not a mistake, SSE3 and AVX had identical results)AVX2
: 83.6±1.9
Pinned Comments
xiota commented on 2024-02-09 01:30 (UTC) (edited on 2024-02-10 05:08 (UTC) by xiota)
This package now uses the SSE3 version because benchmarks on my computers show no performance benefit from using the AVX/AVX2 versions.
xiota commented on 2024-01-18 04:21 (UTC) (edited on 2024-02-21 09:22 (UTC) by xiota)
I made alternate PKGBUILDs: SSE3, AVX, AVX2. (
makepkg -p PKGBUILD.avx2
)However, there is no point making dedicated packages for each because there is no performance benefit from using different versions.
The "normal" version ("AVX") does reference avx2 in the config, but the exact compiler flags are unspecified. All 64-bit versions contain AVX and AVX2 instructions. So too do the Chromium binaries from the official Arch repos. Chromium-based browsers probably detect processor capabilities at runtime, so attempting to target specific instruction sets would not be expected to significantly improve performance.
Here are my results from browserbench.org speedometer 2.1, using fresh profiles:
SSE3
: 83.8±1.0AVX
: 83.8±1.0 (not a mistake, SSE3 and AVX had identical results)AVX2
: 83.6±1.9xiota commented on 2023-10-10 04:01 (UTC) (edited on 2024-02-10 05:06 (UTC) by xiota)
This is an autoupdating package that attempts to download and package the latest version available.
_autoupdate=false
Avoid flagging and commenting at the same time for the same issue.