Having more RAM means having good computer performance. Having a good GPU means having good performance, but for those programs which need a higher amount of FPS, like games. However, GPU is more important than RAM because RAM can be upgraded easily. But, to upgrade a GPU, you will have to buy a new card.  For performance, both GPU and RAM are equally important.