Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

linux.aarch64 release binary is ~3.5x slower than a native arm64 build of the same version

Open
#3,602 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
haskell, linux, ubuntu

Research direction

The release build for linux.aarch64 is produced by the project's CI or Makefile; inspect those to see the cross-compilation from x86_64 with GHC 9.12.2. First read the build scripts and run the benchmark on an arm64 host. Done means the aarch64 release is built natively or with optimised libraries and runs close to the Ubuntu package's 43.2s.

Written by the indexing model from the issue text.

Description

On an Ubuntu 26.04 arm64 host (Hetzner CAX21, 4 vCPU Ampere Altra), the v0.11.0 linux.aarch64 release binary is about 3.5x slower than Ubuntu's natively built package of the same version.

Same 158 scripts (36.8k lines), --severity=warning --format=gcc, LC_ALL=C, median of 3 runs:

binary seconds
v0.11.0 linux.aarch64 release (+RTS --info: GHC 9.12.2, cross-compiled from x86_64) 151.5
Ubuntu resolute shellcheck 0.11.0-2 arm64 (GHC 9.10.3, built natively on Launchpad) 43.2
v0.11.0 linux.x86_64 release, 2-vCPU x86 host, for reference 24.1

All three gave byte-identical output at --severity=style (725 lines), and all three use the non-threaded RTS.

The gap looks like it comes from the cross-build: possibly the boot libraries the aarch64 builder links are not built optimised. Would it be possible to build the aarch64 release with optimised libraries, or natively on an arm64 runner?

Dominant language
Haskell
Stars
40.2k
Forks
2k
Avg merge
4d 4h
Merged PRs (30d)
19

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from koalaman/shellcheck

All issues in koalaman/shellcheck

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.