Skip to content

Instantly share code, notes, and snippets.

@froboy
Last active September 26, 2022 15:57
Show Gist options
  • Select an option

  • Save froboy/f237bf62cfde5350c0849c6e9aab0c71 to your computer and use it in GitHub Desktop.

Select an option

Save froboy/f237bf62cfde5350c0849c6e9aab0c71 to your computer and use it in GitHub Desktop.
Testing DDEV performance

MacBook Pro (14-inch, 2021), macOS 12.3, M1Pro, 16GB, Docker Desktop 4.6.0

Started with D9 Quickstart

Almost all tests took longer on first run. I ran the tests 4 times and dropped the first.

ddev

Test script: time ( ddev drush si demo_umami -y && ddev drush cr && ddev drush uli )

virtualization.framework (new), mutagen off, virtiofs off

0.43s user 0.46s system 1% cpu 1:14.90 total
0.41s user 0.43s system 1% cpu 1:03.97 total
0.41s user 0.43s system 1% cpu 1:05.46 total

hypervisor.framework (old), mutagen off, virtiofs off

0.38s user 0.43s system 0% cpu 1:48.78 total
0.39s user 0.45s system 0% cpu 1:47.44 total
0.39s user 0.45s system 0% cpu 1:48.79 total

virtualization.framework, mutagen ON, virtiofs OFF

0.36s user 0.32s system 3% cpu 21.925 total
0.36s user 0.35s system 3% cpu 21.634 total
0.37s user 0.35s system 3% cpu 21.091 total

virtualization.framework, mutagen off, virtiofs ON (slightly modified script with 'exec' to get it to work)

time ( ddev exec drush si demo_umami -y && ddev exec drush cr && ddev exec drush )

0.34s user 0.37s system 2% cpu 28.071 total
0.34s user 0.38s system 2% cpu 28.186 total
0.34s user 0.35s system 2% cpu 28.554 total

docksal

Test command: time ( fin drush si demo_umami -y && fin drush cr && fin drush uli )

virtualization.framework, mutagen off, virtiofs off

0.38s user 0.58s system 0% cpu 2:04.54 total
0.38s user 0.54s system 1% cpu 1:28.88 total
0.39s user 0.63s system 1% cpu 1:26.75 total

virtualization.framework, mutagen off, virtiofs ON

0.39s user 0.56s system 1% cpu 1:10.06 total
0.37s user 0.52s system 1% cpu 1:07.94 total
0.37s user 0.53s system 1% cpu 1:09.98 total

virtualization.framework, mutagen ON, virtiofs off using nicoschi/mutagen-for-docksal

0.39s user 0.56s system 1% cpu 1:01.46 total
0.37s user 0.55s system 1% cpu 1:03.89 total
0.38s user 0.55s system 1% cpu 1:03.26 total
@rfay
Copy link

rfay commented Sep 26, 2022

I also did a blog about the comparison, getting old now: https://ddev.com/ddev-local/docker-desktop-and-colima-benchmarking-on-macos/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment