Performance is always a complicated and context sensitive subject, so here are some useful pointers.
In PowerShell 5.1it was often recommended to avoid using Out-Null as it did not perform well, but it's performance has been drastically improved in PowerShell 7.