You can either use runCommand or show collection on terminal to list collections on database . This will not have any performance impact , as the information about the collection is pulled from metadata. Usually this metadata information is kept in memory for fast access .
Ref:
Implementation of List Command