This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Syntax: find-min-web.sh <namespace> <loops> | |
| MIN=1000000 | |
| NS='drupal-perf' | |
| LOOPS=100 | |
| [ -n "$1" ] && NS=$1 | |
| [ -n "$2" ] && LOOPS=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| base='' | |
| branch=master | |
| [ -n "$1" ] && branch=$1 | |
| shift | |
| basedir=$(dirname $0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // set profiler namespace | |
| $profiler_namespace = (!isset($_GET['namespace']))?'drupal-perf':$_GET['namespace']; | |
| $profiler_extra = (!isset($_GET['extra']))?'':$_GET['extra']; | |
| // @todo: This still needs devel module with xhprof enabled | |
| $time_start = microtime( true ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for branch in d8-core-1712444-core--rebase d8-core-1712444-twig-ra-opt--rebase d8-core-1712444-v1-ra-opt--rebase d8-core-1712444-v2-ra-opt--rebase d8-core-1712444-v3-ra-opt--rebase d8-core-1712444-twig-node--rebase | |
| do | |
| $HOME/benchmark-vs-baseline.sh "$branch" 508939efc2f7b twig-ra-opt 5088f8fb987c9 core | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| entity_get_controller('image_style') | |
| entity_create('image_style', Array) | |
| image_config_import_create('image.style.large', Object, Object) | |
| call_user_func_array('image_config_import_create', Array) | |
| module_invoke('image', 'config_import_create', 'image.style.large', Object, Object) | |
| config_import_invoke_owner(Array, Object, Object) | |
| config_install_default_config('module', 'image') | |
| module_enable(Array, ) | |
| _install_module_batch('image', 'Image', Array) | |
| call_user_func_array('_install_module_batch', Array) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| === blocks.twig | |
| {% block sidebar %} | |
| Right | |
| {% endblock %} | |
| === test-base.twig | |
| <side> | |
| {% block sidebar %}Sidebar{% endblock %} | |
| </side> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| component('ordered_list', | |
| array( | |
| component('item', 'a', array('id' => 'id-a')), | |
| 'b', | |
| 'c'), | |
| array('id' => 'x') | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * The PHP page that serves all page requests on a Drupal installation. | |
| * | |
| * The routines here dispatch control to the appropriate handler, which then | |
| * prints the appropriate page. | |
| * | |
| * All Drupal code is released under the GNU General Public License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/includes/theme.inc b/core/includes/theme.inc | |
| index 47c99d9..30380f8 100644 | |
| --- a/core/includes/theme.inc | |
| +++ b/core/includes/theme.inc | |
| @@ -11,6 +11,7 @@ | |
| use Drupal\Core\Cache\CacheBackendInterface; | |
| use Drupal\Core\Template\Attribute; | |
| use Drupal\Core\Utility\ThemeRegistry; | |
| +use Drupal\Component\PhpStorage\PhpStorageFactory; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php | |
| index 69e99a0..8bdf86a 100644 | |
| --- a/core/lib/Drupal/Core/Render/Renderer.php | |
| +++ b/core/lib/Drupal/Core/Render/Renderer.php | |
| @@ -184,6 +184,11 @@ protected function doRender(&$elements, $is_root_call = FALSE) { | |
| $this->bubbleStack(); | |
| return $elements['#markup']; | |
| } | |
| + | |
| + // Store the cache ID for later comparison. |