My upper balcony only gets sun from sun up until about 2 PM and I am growing in containers that are about 5 gsllons. I have never really measured them. They might be a little bigger. The raised beds get a lot of sun. I think the raised beds get to sink their roots deeper. The raised beds get a lot of sheep manure dumped in them every year. My balcony upstairs containers are planted in a soil mix that I buy. It is very nice stuff with compost added but it wears out later in the year and I have to support it with More Bloom. My wife grows in containers and uses fish emulsion to feed hers.
I think the raised beds outgrow the containers about two to one on the average.