News for hackers. Stuff that matters.
Re:Apple M1 Ultra by atq2119 on Tuesday March 08, 2022 @06:30PM (#30608840)
Are both cases compiling to the same target architecture? If not, you may well be comparing the relative performance of different compiler backends instead of comparing the performance of your CPUs.

(+ now I see it's rust: how parallel is your build, really?)

Re:Apple M1 Ultra by ripley12 on Tuesday March 08, 2022 @11:12PM (#30610857)
> now I see it's rust: how parallel is your build, really?

Not the OP but I install a lot of Rust projects with Cargo and recently did some benchmarking on DigitalOcean's compute-optimized VMs. Going from 8 cores to 32 cores was a little disappointing:

Bat (~40 crates): 68s -> 61s

Nushell (486 crates): 157s -> 106s

Compilation starts out highly parallel and then quickly drops down to a small number of cores.

Re:Apple M1 Ultra by kiratp on Tuesday March 08, 2022 @11:35PM (#30610984)
The target arch doesn’t matter for the change-build-test loop d vs do. All that matters is how fast can you compile your code to test it.

If the final x86 production build takes longer it doesn’t matter - that happens on the cloud anyway.

Edit: Rust builds are very parallel until linking. No different than any other LLVM build.

Re:Apple M1 Ultra by runeks on Wednesday March 09, 2022 @02:19AM (#30611788)
> The target arch doesn’t matter for the change-build-test loop d vs do.

It matters when comparing CPU performance, which is what this benchmark is being used for.

Re:Apple M1 Ultra by gameswithgo on Tuesday March 08, 2022 @06:43PM (#30608972)
that the arm backend is faster to compile for is a legit advantage for the developer though, even if its distinct from cpu perf