Actually don't want to fuel any ongoing debate but to call attention on that both machines offer some points more or less about the same raw processor perfmormance on its 'stock' offering by apple (this means, in practice, the i7 comes with 1 GB more RAM):
MacPro Base Early 2009 (Xeon 2.66 4 cores, $2499):
source: http://www.primatelabs.ca/blog/2009/03/mac-pro-benchmarks-early-2009/
iMac i7 ($2199):
source: https://forums.macrumors.com/threads/818833/
That said there a of course real life diffrences and diffrent targets, expandability replacements being the pro's main advantage, a bigger HD, more RAM, 27" monitor going for the iMac... all said I think the new iMac has given the permormance everyone expects from a current generation desktop computer, I'm waiting for the quads to be ready available here in Mexico to make the move
, congrats to the new owners!
MacPro Base Early 2009 (Xeon 2.66 4 cores, $2499):

source: http://www.primatelabs.ca/blog/2009/03/mac-pro-benchmarks-early-2009/
iMac i7 ($2199):

source: https://forums.macrumors.com/threads/818833/
That said there a of course real life diffrences and diffrent targets, expandability replacements being the pro's main advantage, a bigger HD, more RAM, 27" monitor going for the iMac... all said I think the new iMac has given the permormance everyone expects from a current generation desktop computer, I'm waiting for the quads to be ready available here in Mexico to make the move