You can’t compare the two processors because they are based on a completely different architecture. Still, in terms of performance, the Intel Core i7-8700K is pretty similar to AMD Ryzen 7 2700x except for a few differences.