2 ms·
For completion here is the compilation time for a small project from the axum/examples[0] (125 LoC), also comparing nightly dev vs adding cranelift + mold:
by ad-ops 3y ago
For completion here is the compilation time for a small project from the axum/examples[0] (125 LoC), also comparing nightly dev vs adding cranelift + mold:
$ time cargo build
Compiling example-todos v0.1.0 (/home/user/ws/rust/example-todos)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.65s
cargo build 1.49s user 0.58s system 123% cpu 1.685 total
Compiling example-todos v0.1.0 (/home/user/ws/rust/example-todos)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.55s
cargo build 0.47s user 0.13s system 102% cpu 0.590 total
[0] https://github.com/tokio-rs/axum/tree/main/examples/todos https://github.com/tokio-rs/axum/tree/main/examples/todos