Are you using JRuby or something? 10 seconds is too long.
> time brew help
> brew help 0.55s user 0.26s system 96% cpu 0.849 total
Re:Types will be part of Ruby 3 stdlib source
by aasasd on Friday April 19, 2019 @01:10PM
(#19701164)
Regular Ruby 2.5.1. I do have a throttled CPU due to no battery in the MacBook, but I still have Python and other stuff to compare, and Brew (or Ruby) definitely does something wrong on my machine. It's hugely CPU-bound without a particular reason for being so.
Brew's not even consuming much system cpu time during `brew search`, despite hogging a core for a full minute.
Even just `brew help` takes almost 10 sec cold.