Skip to content

Instantly share code, notes, and snippets.

@diyan
Created December 4, 2020 19:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diyan/87da34ac80763e6e4480f155098bbf6d to your computer and use it in GitHub Desktop.
Save diyan/87da34ac80763e6e4480f155098bbf6d to your computer and use it in GitHub Desktop.
Gradle build time on AMD64 vs ARM64 using Docker multi-arch build feature

Gradle build time on AMD64 vs ARM64 using Docker multi-arch build feature

AMD64. docker buildx build --platform=linux/amd64 --tag=sample-app:amd64 .
ARM64. docker buildx build --platform=linux/arm64 --tag=sample-app:arm64 .

AMD64. An attempt to start the daemon took 1.883 secs.
ARM64. An attempt to start the daemon took 51.799 secs.

AMD64. :compileKotlin (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 25.839 secs.
ARM64. :compileKotlin (Thread[Execution worker for ':' Thread 6,5,main]) completed. Took 25 mins 10.042 secs.

AMD64. :compileTestKotlin (Thread[Execution worker for ':' Thread 7,5,main]) completed. Took 6.509 secs.
ARM64. :compileTestKotlin (Thread[Execution worker for ':' Thread 3,5,main]) completed. Took 7 mins 58.425 secs.

AMD64. BUILD SUCCESSFUL in 1m 36s
ARM64. BUILD SUCCESSFUL in 51m 23s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment