I'm curious how both would compare to D.

If you are interested ins speed, here is a huge list of similar benchmarks: https://github.com/kostya/benchmarks