Does running some commands on terminal with sudo permission consume more RAM?
Theoretically yes, there could be memory leaks etc in the application which only trigger when the application runs with administrative or root privileges. In practice the chance for this is probably rather small, and I would look for issues elsewhere first.