Did you "preheat" during those tests? It is very common for cloud instances to have "burstable" vCPUs. That is - after boot (or long idle), you get decent performance for first few minutes, then performance gradually tanks to a mere fraction of the initial burst.
> The total wall clock time for the build was measured. The smaller the better. I always did one build to prime the caches and discarded the first result.