These sites have some interesting info about how cpu's perform when compiling big software projects:
https://openbenchmarking.org/test/pts/build-linux-kernel
https://www.phoronix.com/scan.php?page=news_item&px=Kernel-Bisecting-5.9-Ongoing
Compiling is a little bit of a conflicted benchmark because at least open-source projects (especially those combining a lot of subprojects) usually tend to alternate phases running "configure" which typically only uses maybe two cores or linking which uses one core, with phases which can use as many cores as there are C files in the current subproject.
So it varies from project to project a lot. A CPU that has a lot of cores but can't turbo one or two cores up to infinity can suffer a lot from Amdahl's law.
Anyway, in the linux kernel builds, my 32 core 2990wx ranks at 40 seconds and the only things faster than it are 2nd gen Threadrippers with 24+ cores, EPYC with 24+ cores, or dual XEONs with 20+ cores each (40+ cores total). Only the 24 core ThreadRipper 3960X is (a little) cheaper. And the "2 x AMD EPYC 7282 16-Core", at least for the CPUs themselves -- the needed motherboard surely is expensive.
The OP's 3900X clocks in at 53 seconds, which is very very respectable, especially for the price.
Incidentally, I just a couple of days ago took delivery of a Lenovo ThinkPad E14 Gen 2 with 6 core (Zen 2) Ryzen 5 4500U, which was around US$735 including tax and shipping. It clocks the Linux kernel build page at 194 seconds.
Both my 2.5 year old NUC and the 6th gen X1 Carbon I had at my last job have an i7-8650U, rated at 256 seconds.
The current entry level 8th gen X1 Carbon and the Intel version of the E14 both have i5-10210U rated at 258 seconds.
The kernel bisecting link doesn't have any comparative CPU figures, but just points at the same kernel build stats and also LLVM build stats (which don't cover many machines))