Rust-for-Linux / linux

Adding support for the Rust language to the Linux kernel.
https://rust-for-linux.com
Other
3.83k stars 399 forks source link

Macro syn rewrite #1073

Open y86-dev opened 2 months ago

fbq commented 2 months ago

Another Q out of curiosity: have you measured the affect of build time?

y86-dev commented 2 months ago

A very crude measurement:

If you time it as well, then maybe I can write about the increase in the cover letter :)

fbq commented 2 months ago

If you time it as well, then maybe I can write about the increase in the cover letter :)

Good point, here is the result from my machine:

(configured with ./tools/testing/kunit/kunit.py config --build_dir <dir> --make_options LLVM=1 --arch arm64 --kconfig_add CONFIG_RUST=y --kconfig_add CONFIG_SMP=y)

make ARCH=arm64 O=.kunit-next --jobs=40 LLVM=1 975.55s user 62.11s system 2159% cpu 48.054 total

make ARCH=arm64 O=.kunit-syn --jobs=40 LLVM=1 1022.36s user 62.38s system 2243% cpu 48.357 total