im on demo. i did full bonus research for farm and cattle farm and assigned 1 worker to each to compare. i dont have a continent or road bonus. just normal productivity with research. so using average numbers:
farm:
+0.9 food; -0.5 wood; -0.25 water
cattle farm:
+0.68 food; -0.2 water
cattle farm can also get stuck if you run out of food completely. the farm only gives you 0.22 food more. farm gets bonus for summer; they both get penalty for winter. i dont remember the other events, there was some disease that happens that affects cattle and maybe both. not a big deal if you use doctors.