From https://browser.primatelabs.com/mac-benchmarks:
5638 | iMac (27-inch Retina Mid 2017) — Intel Core i7-7700K @ 4.2 GHz (4 cores)
5098 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7600 @ 3.5 GHz (4 cores)
5085 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7600K @ 3.8 GHz (4 cores)
--
4740 | iMac (21.5-inch Retina Mid 2017) — Intel Core i5-7500 @ 3.4 GHz (4 cores)
4685 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7500 @ 3.4 GHz (4 cores)
5638 | iMac (27-inch Retina Mid 2017) — Intel Core i7-7700K @ 4.2 GHz (4 cores)
5098 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7600 @ 3.5 GHz (4 cores)
5085 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7600K @ 3.8 GHz (4 cores)
--
4740 | iMac (21.5-inch Retina Mid 2017) — Intel Core i5-7500 @ 3.4 GHz (4 cores)
4685 | iMac (27-inch Retina Mid 2017) — Intel Core i5-7500 @ 3.4 GHz (4 cores)