genhtml is too slow compared to old version
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- perl
- Domain
- performance
Research direction
Start by reproducing the reported genhtml command on Ubuntu 20.04 with the supplied tracefile characteristics, comparing lcov 1.14, lcov 2.0, and lcov 2.0 with --parallel. Measure elapsed, user, and system time plus resource use; done means identifying and correcting the regression or documenting why parallel execution is slower.
Written by the indexing model from the issue text.
Description
running on ubuntu20.04, with 16 cores, 32G memory.
tested using the same tracefile(about 700 files, 300k+ lines, 20k+ functions, 100k+ branches), genhtml command:
time genhtml --output-directory $OUTPUT --branch-coverage --prefix $PREFIX coverage.info
with ubuntu20.04 default lcov 1.14:
real 0m23.972s
user 0m22.009s
sys 0m1.823s
with lcov 2.0:
real 1m14.681s
user 1m12.299s
sys 0m1.970s
with lcov 2.0(--parallel):
real 2m36.937s
user 21m53.142s
sys 14m31.093s
It seems that adding --parallel makes things worse, which consumes more CPU and memory, but have no advantage.(I thought parallelism should be faster?)
- Dominant language
- Shell
- Stars
- 1.1k
- Forks
- 272
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linux-test-project/lcov
-
On macOS, lcovutil.pm loads itself twice and warns "Subroutine ... redefined" for each subroutineOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
linux-test-project/lcov#574 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
linux-test-project/lcov#546 · 4 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
linux-test-project/lcov#409 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
linux-test-project/lcov#376 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
linux-test-project/lcov#318 · 8 comments ·
All issues in linux-test-project/lcov
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
docker/sbx-releases#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
🐳 docker 👩💻 DevOps API backend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openfoodfacts/search-a-licious#613 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nolabs-ai/nono-packs#70 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pingcap/monitoring#1284 ·
Maintainers usually reply within 1 day