Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Try running `cargo build --timings`, it creates a report about build time

Yeah, I got a bit longer time now, after `cargo clean `. Here are the timings: https://html-preview.github.io/?url=https://gist.githubuserc...

It's still strange win 10 was faster to compile on a worse CPU and worse memory :/

Maybe WSL has some issues that MSVC toolchain doesn't.

> I dont think i understood this correctly, but in the case you are asking (for clarification) about my compile times

Yes. I was confused by its output, i.e. 2541.91s



> Yes. I was confused by its output, i.e. 2541.91s

Thats the output of the shell command `time` (im using zsh so the output differs from other shells) eg `time cargo build`.

system is the cpu time spent calling kernel functions and user is the cpu time spent outside kernel functions. The time is measured per core, so if the program runs for 2 seconds with 16 threads, the user time would be around 32.

Notice there is a cpu metric (1341% cpu), if you do: (user + system) / cpu * 100 / 60 = ~3.29 minutes = 3m:17s




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: