The ghz is the operating frequency of each core.
But not all processors do the same amount of work per ghz. Called IPC or instructions per clock.
Newer gen intel processors do more work per clock than older ones.
In general, intel processors do more work per clock than amd. With ryzen, the delta has reduced considerably to where intel has perhaps a 10% advantage.
Many tasks are single threaded so the performance of ta single core is the limiting factor.
Many tasks are multithreaded, and you can run many apps at once.
In those cases, the total capability increases with the number of cores.
Then there is something called hyperthreading.
That lets a single core do the work of two by using residual capabilities of one core to dispatch a secont thread.
You can sort this all out simply by looking at the passmark performance numbers of the cpu.
To see the big difference possible, here are two examples of a 3.4 ghz processor:
A Pentium 4 @3.4ghz from 10 years ago has a total passmark rating of 396 and a single thread rating of 749
https://www.cpubenchmark.net/cpu.php?cpu=Intel+Pentium+4+3.40GHz
A I7-6700 @3.4 has a rating of 10006 and a single thread rating of 2153.
https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-6700+%40+3.40GHz
Update...
Your A10-7700K has a rating of 5141 and a single thread rating of 1497.
https://www.cpubenchmark.net/cpu.php?cpu=AMD+A10-7700K+APU