Benchmarking Java, Rust, Go and Node build times on Windows, WSL and Linux
This repository contains code I used to write an article comparing build times. Read the article here: https://medium.com/aedm/windows-wsl-and-linux-a-build-time-benchmark-for-java-rust-go-and-node-43188a9c77d6
Set up tests on Linux
Start with a fresh Ubuntu.
- Run
linux/init-install-toolchains.sh
. This will install all tools needed. - Open a new Bash.
- Run
linux/init-clone-repos.sh
. This will git clone the test projects into~/bench
. - Run every
linux/bench-*.sh
script to download dependencies. - Turn off networking.
Set up tests on Windows
- Install tools manually. Sorry.
- Go to the
windows
directory. - Run
init-clone-repos.ps1
. This will git clone the test projects into the current folder. - Run every
bench-*.sh
script to download dependencies. - Turn off networking.
Running a test
- Restart the machine.
- Run a
bench-*
script to run a benchmark with cold file cache. - Run the same script again to get the result with a hot file cache.