llvm / llvm/llvm-project

LLVM `readelf` is slower than GNU `readelf`

Open
#186,469 4 comments 0 reactions 0 assignees View on GitHub
performance tools:llvm-readobj/readelf
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Hi, LLVM `readelf` is slightly slower than GNU `readelf` on the same computers and inputs.

Average "real" time of 3 runs of `time readelf -d /usr/bin/ls`: 5.33 ms
Average "real" time of 3 runs of `time llvm-readelf -d /usr/bin/ls`: 10 ms

Computer specifications:

OS: Gentoo GNU/Linux
LLVM `readelf` version: 21.1.8
GNU `readelf` version: 2.45.1
CPU: AMD Ryzen 9 5950X
RAM: 80 GB DDR4-2133
SSD: Samsung 990 PRO NVMe

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.