Use these scripts to benchmark the startup time of local Docker, Azure Container Instance, and Azure VM. For Docker and ACI, I used the latest Nginx image from Docker Hub. Azure VM uses the pre-configured Bitnami image for Nginx. Both ACI and Azure VM are launched in US West.
An average of running 5 tests gave the following results.
Please install jq before running these scripts. You also need the latest version of Azure CLI.
The steps include launching the resources, adding a public IP address (only for Azure VM), and accessing the Nginx homepage.
After configuring Azure CLI and cloning the repo, run
chmod +x ./*.sh
./bench.sh
At the end of the execution, you will see the time in seconds to launch each resource. At the end run cleanup.sh
to delete all the resources.