which is best for blender rendering cpu or gpu I am trying to learn Blender , my current system with i5 3230M with 8GB works all right but struggling , So I am planning to build a budget pc. It ll be really helpful if you anyone could help me out on important question . is it best to have a good cpu (like i7 7700) and no graphics or to have mediocre cpu (like Ryzen 3 1200) and a graphics card (like GTX 1050Ti 8GB).

I read cpu can take advantage of copious ram for large scenes and gpu can be faster under normal rendering circumstances. 

Any suggestions save for a particular cpu or gpu , Thanks a lot in advance.
I’d go pure cpu for now, it’s quite easy to max a gpu’s 4-6gb ram cap

Whilst you can upgrade normal system ram

Plus cpu’s Are closing the gap substantially on GPUs in blender 

To put it into perspective:
Amd’s Threadripper 1950x £800 can render a scene at 90% the speed of a gp100 Nvidia gpu (£4000 card 16gb cap) but if the scene gets over that 16gn limit then and wins hands down 

Check this http://download.blender.org/institute/benchmark/latest_snapshot.html