Gaming is GPU and RAM dependant as well, it doesn't just run on the CPU alone.
Are you and your friend both using integrated graphics, and have the same amount of RAM?
The 4790K is a more powerful CPU, but it has a very weak GPU built in. The one place where the 7300hq is better is that it has a much better GPU.
If your friend has the same amount of RAM and had a dedicated gaming graphics card your machine would not even come near it.