Closed gitressa closed 5 years ago
I have recently been testing out Docker based Lando. Load time for individual pages are faster, and it downloads a Drupal 8 code base with Composer up to 15 times faster:
composer create-project drupal-composer/drupal-project:8.x-dev d8 --stability dev --no-interaction --no-dev
Scotch Box Time: 4:10 min
Lando Time: 16 seconds
Setting up a new environment for a Lando project is also much faster, since the settings for the individual projects are discerned between based on the unique socket, so database name, user name, etc. are all called fx drupal8
for a Drupal 8 project. As an example here is the settings.php from one Drupal 8 project, but it would be identical in another project:
$databases['default']['default'] = array (
'database' => 'drupal8',
'username' => 'drupal8',
'password' => 'drupal8',
'prefix' => '',
'host' => 'database',
'port' => '',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
I have bench-marked Scotch Box by downloading and installing Drupal 8, notorious for having many files. Interestingly, with NFS enabled, downloading and unpacking is much slower, whereas installing is faster. Without NFS, downloading and installing takes about the same time.
Also, after installation with NFS enabled, Scotch Box is much faster between clicking and the page being ready (~1 second), whereas without NFS it takes 2-3 seconds. Perhaps the file system works slower with NFS enabled, but database write is faster?
Method:
Results
Vagrant file, default (no NFS):
Vagrant file, NFS-enabled: