This is in french (with english trans) and quite technical but says the 50D is good as or better than 40D.
http://www.astrosurf.com/buil/50d/test.htm
The other benefit of the 50d over 40d is the screen for live view or checking focus- the 50d has 920k pixels vs 200 something on the 40d.
Robert