Or i.e. if the Athlon 64 does 15 instructions/MHz aka IPC (mentioned above) while the Pentium 4 does 10 instructions/MHz. This is a roughl example of why the Athlon 64 does more than a Pentium 4 @ equivalent CPU frequencies.
Athlon 64
[ 2,000MHz(2GHz) x 15 instructions = 30,000 instructions ]
Pentium 4
[ 2,000MHz(2GHz) x 10 instructions = 20,000 instructions ]
Therefore it would take a Pentium 4 @ [ 3,000MHz(3GHz) x 10 = 30,000 instructions ] to perform as well as the Athlon 64 @ 2 GHz.
Obviously other factors come into affect such as FSB frequencies, cache, marchitecture, etc. which means you can't exactly say processor A is faster or equivalent to processor B on IPCs alone.