the iMac is much more powerful.
The iMac has a desktop i5 CPU, which is a quad core and much more powerful. the 13" base is a dual core i5.
The iMac also has a dedicated GPU, the GT 755M whereas the macbook has the integrated one (Iris). The base model GPU on the iMac is more powerful than even the highest end GPU on the highest end 15" macbook pro.
The base model macbook pro is still a fairly powerful machine, but the iMac is still way more powerful.