Please read the article from page 3 to page 12.
The mechanical efficiency of bicycle derailleur and hub-gear transmissions
When you have read that, do you have any more questions?
I warmly recommend to anyone posting in this thread to read that article.