Skip to content

Instantly share code, notes, and snippets.

@apainintheneck
Created September 2, 2024 22:29
Show Gist options
  • Save apainintheneck/d39b1095c5a44507db9b3dbd1404f6c6 to your computer and use it in GitHub Desktop.
Save apainintheneck/d39b1095c5a44507db9b3dbd1404f6c6 to your computer and use it in GitHub Desktop.
`brew_sh` benchmarks
~ $ cd (brew --repo)
/u/l/Homebrew (master|✔) $ cd library/homebrew/test
/u/l/H/l/h/test (master|✔) $ git grep -n 'brew_sh "' | awk -F": " '
{
sub("_spec.rb", "", $1)
command = "brew tests --profile=1 --only=" $1
print ">>>>> Command: " command
system(command)
}'
>>>>> Command: brew tests --profile=1 --only=cmd/--caskroom:10
Randomized with seed 22916
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--caskroom_spec.rb"=>[10]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 22916
.
Top 1 slowest examples (0.10248 seconds, 98.6% of total time):
Homebrew::Cmd::Caskroom prints Homebrew's Caskroom
0.10248 seconds ./test/cmd/--caskroom_spec.rb:9
Finished in 0.10393 seconds (files took 4.11 seconds to load)
1 example, 0 failures
Randomized with seed 22916
>>>>> Command: brew tests --profile=1 --only=cmd/--cellar:10
Randomized with seed 3065
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--cellar_spec.rb"=>[10]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 3065
.
Top 1 slowest examples (0.10083 seconds, 98.1% of total time):
Homebrew::Cmd::Cellar prints Homebrew's Cellar
0.10083 seconds ./test/cmd/--cellar_spec.rb:9
Finished in 0.10277 seconds (files took 4.05 seconds to load)
1 example, 0 failures
Randomized with seed 3065
>>>>> Command: brew tests --profile=1 --only=cmd/--prefix:10
Randomized with seed 61724
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--prefix_spec.rb"=>[10]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 61724
.
Top 1 slowest examples (0.10343 seconds, 98.6% of total time):
Homebrew::Cmd::Prefix prints Homebrew's prefix
0.10343 seconds ./test/cmd/--prefix_spec.rb:9
Finished in 0.10487 seconds (files took 4.04 seconds to load)
1 example, 0 failures
Randomized with seed 61724
>>>>> Command: brew tests --profile=1 --only=cmd/--prefix:17
Randomized with seed 48856
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--prefix_spec.rb"=>[17]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 48856
.
Top 1 slowest examples (0.10498 seconds, 98.3% of total time):
Homebrew::Cmd::Prefix prints the prefix for a Formula
0.10498 seconds ./test/cmd/--prefix_spec.rb:16
Finished in 0.10677 seconds (files took 4.05 seconds to load)
1 example, 0 failures
Randomized with seed 48856
>>>>> Command: brew tests --profile=1 --only=cmd/--repository:5
Randomized with seed 23850
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--repository_spec.rb"=>[5]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 23850
.
Top 1 slowest examples (0.13542 seconds, 96.8% of total time):
brew --repository prints Homebrew's repository
0.13542 seconds ./test/cmd/--repository_spec.rb:4
Finished in 0.13994 seconds (files took 4.05 seconds to load)
1 example, 0 failures
Randomized with seed 23850
>>>>> Command: brew tests --profile=1 --only=cmd/--repository:12
Randomized with seed 40649
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--repository_spec.rb"=>[12]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 40649
.
Top 1 slowest examples (0.46338 seconds, 99.7% of total time):
brew --repository prints a Tap's repository
0.46338 seconds ./test/cmd/--repository_spec.rb:11
Finished in 0.46492 seconds (files took 4.07 seconds to load)
1 example, 0 failures
Randomized with seed 40649
>>>>> Command: brew tests --profile=1 --only=cmd/--repository:19
Randomized with seed 59391
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--repository_spec.rb"=>[19]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 59391
.
Top 1 slowest examples (0.62436 seconds, 99.3% of total time):
brew --repository prints a Tap's repository correctly when homebrew- prefix is supplied
0.62436 seconds ./test/cmd/--repository_spec.rb:18
Finished in 0.62886 seconds (files took 4 seconds to load)
1 example, 0 failures
Randomized with seed 59391
>>>>> Command: brew tests --profile=1 --only=cmd/--version:5
Randomized with seed 32615
/usr/local/Homebrew/Library/Homebrew/api.rb:9: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec.
Run options:
include {:locations=>{"./test/cmd/--version_spec.rb"=>[5]}}
exclude {:needs_linux=>true, :needs_network=>true, :needs_ci=>true, :needs_svn=>true}
Randomized with seed 32615
.
Top 1 slowest examples (0.43193 seconds, 98.9% of total time):
brew --version prints the Homebrew's version
0.43193 seconds ./test/cmd/--version_spec.rb:4
Finished in 0.43654 seconds (files took 4.08 seconds to load)
1 example, 0 failures
Randomized with seed 32615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment