Skip to content

Commit

Permalink
content: try to update pkgcruft commands to work with the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Jan 4, 2025
1 parent 45dca61 commit 6528a4f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions content/posts/evolving-qa-tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Replay all dev-python/* related reports, returning the total count:

Replay all report variants generated by the Whitespace check:

- `pkgcruft replay -c Whitespace reports.json`
- `pkgcruft replay -r @Whitespace reports.json`

Replay all python update reports:

Expand All @@ -169,15 +169,15 @@ semi-recent gentoo repo checkout on a modest laptop with 8 cores/16 threads (AMD
5700U) using a midline SSD are as follows:

- pkgcheck: `pkgcheck scan -c PythonCompatCheck -j16` -- approximately 5s
- pkgcruft: `pkgcruft scan -c PythonUpdate -j16` -- approximately 360ms
- pkgcruft: `pkgcruft scan -r PythonUpdate -j16` -- approximately 360ms

For comparative parallel efficiency, pkgcruft achieves the following with different
amounts of jobs:

- pkgcruft: `pkgcruft scan -c PythonUpdate -j8` -- approximately 420ms
- pkgcruft: `pkgcruft scan -c PythonUpdate -j4` -- approximately 660ms
- pkgcruft: `pkgcruft scan -c PythonUpdate -j2` -- approximately 1.2s
- pkgcruft: `pkgcruft scan -c PythonUpdate -j1` -- approximately 2.4s
- pkgcruft: `pkgcruft scan -r PythonUpdate -j8` -- approximately 420ms
- pkgcruft: `pkgcruft scan -r PythonUpdate -j4` -- approximately 660ms
- pkgcruft: `pkgcruft scan -r PythonUpdate -j2` -- approximately 1.2s
- pkgcruft: `pkgcruft scan -r PythonUpdate -j1` -- approximately 2.4s

Note that these results are approximated averages for multiple runs without flushing
memory caches. Initial runs of the same commands will be slower due to additional I/O
Expand All @@ -198,12 +198,12 @@ results for the same check run in those contexts:
Targeting dev-python/*:

- pkgcheck: `pkgcheck scan -c PythonCompatCheck -j16` -- approximately 1s
- pkgcruft: `pkgcruft scan -c PythonUpdate -j16` -- approximately 100ms
- pkgcruft: `pkgcruft scan -r PythonUpdate -j16` -- approximately 100ms

Targeting dev-python/jupyter-server:

- pkgcheck: `pkgcheck scan -c PythonCompatCheck -j16` -- approximately 380ms
- pkgcruft: `pkgcruft scan -c PythonUpdate -j16` -- approximately 25ms
- pkgcruft: `pkgcruft scan -r PythonUpdate -j16` -- approximately 25ms

Note that in the case of targeting a single package with multiple versions, pkgcruft
currently doesn't parallelize per version and thus could possibly half its runtime if that
Expand Down

0 comments on commit 6528a4f

Please sign in to comment.