Computer Processing Speed based on Intel?

If a computer has an Intel i7 Gen 8 with a 1.8 GHz speed, but another has an Intel i5 Gen 8 with a 3.4 GHz speed, does that mean the i5 is faster than the i7?
3 answers 3