Raku / Raku/whateverable

Benchable should not uncompress builds for every iteration

Open Beginner friendly
#299 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

benchable
Dominant language
Raku
Stars
19
Forks
16
PR merge metrics
No merged PRs in 30d

Description

See this:
https://github.com/perl6/whateverable/blob/9b747bc43e61f340295e1fc497f0535d460554d3/bin/Benchable.p6#L43-L44

run-snippet will then call run-smth:
https://github.com/perl6/whateverable/blob/9b747bc43e61f340295e1fc497f0535d460554d3/lib/Whateverable.pm6#L405-L407

run-smth is basically a wrapper that takes a block and wraps some logic around it to uncompress and then delete builds. So the for ^ITERATIONS logic should be inside that block, otherwise it will spend a lot of time just uncompressing stuff.

Contributor guide

Open the contributing guide

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.

Research direction

Start with the referenced loop in bin/Benchable.p6 and follow run-snippet into run-smth in lib/Whateverable.pm6. Check how builds are uncompressed and deleted around the benchmark block, then run the relevant Benchable flow to verify that a build is unpacked once for all iterations rather than once per iteration.

Written by the indexing model from the issue text.

Assessment

Domain
performance, tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.