The gas cost after calling each function is stated above it and there are also comments that explains what each line of code does.
tanim0la/solidity_vs_yul
Comparing Solidity and Yul (inline-assembly) based on code and gas cost to perform similar task.
Solidity