I'm considering upgrading my PC because compiling a cross-platform desktop app on Windows has been frustratingly slow—over 10 minutes for a fresh build and 10 seconds for an incremental recompile using the Tauri framework.
If you have a powerful CPU and are running Windows (not Linux or macOS), I’d greatly appreciate your help testing compile times! Here’s how you can check:
Open PowerShell.
Run the following commands
cargo install create-tauri-app --locked
cargo create-tauri-app # Press Enter to accept the defaults.
cd tauri-app/src-tauri
cargo fetch
Measure-Command { cargo build }
To check recompile time, make a small edit to lib.rs and run Measure-Command { cargo build } again (twice).
Please share your results with me, including:
Fresh build time (in seconds).
Recompile time (in seconds).
Your CPU model.
For reference, here are my results:
CPU: AMD Ryzen 5 4500U
Fresh build: 6 minutes 26 seconds (410 crates).
Recompile: 10 seconds (after editing lib.rs).
I’m curious to see how other CPUs perform on Windows!
Thanks : - )
Interestingly, adding a Windows Defender exclusion to the project directory doesn't help the first time after adding the exclusion, but runs after that consistently hit
Fresh build: 49 seconds Recompile: 1.7 seconds
And even without the exclusion the second recompile (still with edits!) hits 2s ... some sort of disk cache effect, I assume?
CPU (just now realizing you want benchmarks for CPUs to upgrade to and my CPU is not good, but I already ran the measurements so I’ll post them) Intel Pentium G4560
Windows 10, 16 GB RAM, and an old HDD Fresh Build 7 minutes 6 seconds Recompile 8.1 seconds