Take each CPU and look at it at https://www.cpubenchmark.net/cpu_list.php - provided you are after overall performance rather then to performance in a specific case it will give you a good indication.
All else being equal (and its close, but not quite - i5's are typically slightly more performant the i3" s) for single threaded workloads the CPU frequency is more important. For multi threaded workloads CPU count * clock speed is the more relevant.
In the general case, Apache is multi threaded and can spread the load over multiple cores.
If this site is correct, the CPUs in question would seem to be i3-8100B and i5-8500B. If this is correct, this comparison should answer your question. The short answer is that the i5-8500b will be faster any way you look at it. The per core performance is higher (2466 vs 2173) despite the lower clock speed (which is possible as it may be doing more per clock), and then it has more cores so you get even more performance. Increased performance of the i5 processor will be between 20 and 50% depending on the work load - likely towards the higher end of that range as Apache is multithreaded.