Skip to content

Conversation

tianon
Copy link
Owner

@tianon tianon commented Nov 27, 2024

This avoids doing an expensive temporary checkout and lets us get to the answer much faster.

The approach here is very inspired by/copied from docker-library/golang#531

This avoids doing an expensive temporary checkout and lets us get to the answer much faster.
@tianon
Copy link
Owner Author

tianon commented Nov 27, 2024

$ hyperfine './versions.sh devel' './old-versions.sh devel'
Benchmark 1: ./versions.sh devel
  Time (mean ± σ):      1.238 s ±  0.064 s    [User: 0.260 s, System: 0.037 s]
  Range (min … max):    1.141 s …  1.354 s    10 runs
 
Benchmark 2: ./old-versions.sh devel
  Time (mean ± σ):      5.951 s ±  0.149 s    [User: 1.608 s, System: 0.235 s]
  Range (min … max):    5.662 s …  6.201 s    10 runs
 
Summary
  './versions.sh devel' ran
    4.80 ± 0.28 times faster than './old-versions.sh devel'

@tianon tianon merged commit 26d2cd6 into tianon:master Nov 27, 2024
15 checks passed
@tianon tianon deleted the better-devel branch November 27, 2024 23:16
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Dec 3, 2024
Changes:

- tianon/docker-bash@81712e4: Update devel to 20241126, commit 49c2670226b045746d66765b23af37c1c7ba5597
- tianon/docker-bash@26d2cd6: Merge pull request tianon/docker-bash#41 from self-five/better-devel
- tianon/docker-bash@c29c640: Use cgit atom feed to find devel commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant