Performance regression in Drupal 8.8

Created on 28 January 2020, almost 5 years ago
Updated 15 September 2024, 2 months ago

Problem/Motivation

Part of the automated tests for the Thunder distribution is performance regression tests. We test various editorial tasks by executing them as Nightwatch tests and sending time markers to an Elastic APM stack at various stages of the task.

We then run those tests multiple times for different branches of the distribution and compare the results. Two branches we always test are a branch with the current Drupal version (Drupal 8.8.1 as of now) and another one with the latest version of the previous Drupal minor version (which is currently Drupal 8.7.11).

The test that measures the time between clicking on the "Save" button on a node edit form and the fully-loaded target page has seen a noticeable regression between Drupal 8.7 and 8.8.

This is a visualization of multiple test runs

The yellow line represents Drupal 8.7, the green one 8.8.
The average time suggests, that Drupal 8.8 takes about 15% longer to execute the node save.

It has to be said, that those tests are not run with Vanilla Drupal, we will provide easier reproducible tests later. But we wanted to get this getting started now.

Some things to consider

  • Each test run is executed on a fresh Thunder installation with 4500 nodes pre-generated.
  • The full test, that this save is part of, opens one of those nodes, changes all fields in it and then saves the node.
  • The content-type used in this test has several additional fields defined, one of these is a paragraph field, also metatags module is used. Both are known to slow down the save in general. Paragraphs module and metatags module versions are the same on both branches

Proposed resolution

Remaining tasks

  • Provide better reproducible test.
  • Investigate.
🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
Entity 

Last updated 2 days ago

Created by

🇩🇪Germany daniel.bosen

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024