Newsfeeds

Sooper Drupal Themes: Drupal 8 vs Drupal 7 Performance 2018: Drupal 8.5 Is Faster With Glazed Theme Main Demo! | 8 Days To Drupal 8 | Day 7

Planet Drupal - 22 April 2018 - 5:07am

We're counting down the days to the official SooperThemes Drupal 8 Release! Count with us as we will be writing a Drupal 8 related blog post every day for the next 8 days.

Drupal 8 is known for being heavier and slower than Drupal 7. However, Drupal 8 doesn't deserve this image and I think it got this image from lazy benchmarking: Testers just install Drupal's default profile, run some ab tests and call it a day. This is not a realistic test! Real Drupal websites will have hundreds of pages, menu items, configuration objects, more complex theming, more modules etc. 

I did some more extensive testing to compare our Drupal 7 products with the Drupal 8 versions that are to be released next week. The beautiful thing (for this test) about our products is that we maintain them with feature parity across Drupal 8 and 7. We provide installation profiles that combined have thousands of content items, menu items, and configuration settings that make them very close to real-world Drupal 8 & 7 websites. Perfect material for benchmarking!

Test 1: Drupal 8 vs Drupal 7 Cached Page Delivery

Drupal 8 default profile cached page benchmark. Drupal 7 255% faster than Drupal 8.

Ok let's get this over with first. Drupal 8 is built on a PHP core that is slower to parse than Drupal 7 and uses more memory. On an empty Drupal installation you will really notice this difference because the empty shell will act like a magnifying glass on the underlying architecture. In the chart above you can see that Drupal 7 is more than twice as fast at delivering cached pages to anonymous users. 

This test is what most people will refer to when saying Drupal 8 is slower than Drupal 7 but this is in fact the least interesting test for 2 reasons:

  1. Nowadays it is very easy to put a cache in front of Drupal. You can use Nginx, Varnish, or Cloudflare with the free plan to serve thousands of cached pages per second, regardless of whether Drupal 8 or 7 or anything else is behind the cache. 
  2. Any empty installation with Drupal's default profile is a bad model for a real website.
Test 2: Drupal 8 vs Drupal 7 Autenticated Views Portfolio Display 

Drupal 8 Glazed Main Demo views display benchmark. Drupal 8  is 228% faster than Drupal 7.

For this second test we use the Main Demo installation profile with our Glazed Theme and Glazed Builder products. This means we have a dropdown menu with 100+ items, a database with around 100 nodes, lots of views displays and contrib modules, and our Glazed theme is enabled which subthemes the bootstrap basetheme. This is a much closer simulation of a real-life Drupal website than the default profile is!

We're benchmarking a views display that draws fields from nodes and taxonomy terms, does some interesting templating and is then pulled into a page using Glazed theme to display the view along with peripheral content.

As you can see in the chart Drupal 8 is now twice as fast as Drupal 7. Despite the heavier core, Drupal 8 is faster when handling large amount of configuration, views, and heavier themes like Glazed and the Bootstrap basetheme. I suspect this is due to the more elaborate caching architecture in Drupal 8. Especially template files are now heavily cached and so are other important Drupal components.

Tested page: https://demo.sooperthemes.com/glazed-main/portfolio/premium1

Test 3: Drupal 8 vs Drupal 7 Autenticated Drag and Drop Page 

Drupal 8 Glaezd Main Demo views display benchmark. Drupal 8 12,5% than Drupal 7.

Our previous test showed an extreme example of Drupal 8 being faster due to its better handling of views. This 3rd test shows what we typically see when benchmarking Drupal 8: Drupal 8 is slightly faster in loading pages in our Glazed Theme demos. We see similar results when testing drag and drop pages, or other content types that don't use the drag and drop builder. In fact our Page Builder module does not significantly impact performance even when loading multiple Glazed Builder editors within the same page. 

The Drupal 8 and 7 installation profiles have near feature-parity but in fact the Drupal 8 version includes the Admin Toolbar module and the Drupal 7 profiles do not include an admin menu module. This means that each page comes with an additional 200 menu items in the Drupal 8 tests. In Drupal 7 I usually install the admin_menu module for faster administration, and this module is known to be significant burden on the server. The fact that Drupal 8 is faster in our tests despite loading the additional 200 menu items is impressive! 

Tested page: https://demo.sooperthemes.com/glazed-main/elements/layout-elements/columns

Conclusion: Drupal 8 Is A Heavier System With More Extensive Caching That Can Make It Faster Than Drupal 7 In Real-Life Situations

At the start of its life Drupal 8.0 got a lot of criticism for being slow. Now in 2018, Drupal 8.5 has seen a significant number of performance improvements and while it's still slower than Drupal 7 at the core, it's faster in complex situations that are more relevant to real-life Drupal websites.

Drupal 8 is faster where it matters, and more scalable! It's also important to add that both test installations did not have any special settings enabling caching of content, views, blocks, etc. Drupal 8 has a much more advanced and more granular caching system that lets you finetune and optimize your experience for logged in users on a grander scale than was every possible with Drupal 7. Notably there is the BigPipe module that gives you lightning fast loadtimes for your primary content and it can then separately lazy-load less important content, like the footer, menus, and sidebar blocks.

For sure this test brings good news to SooperThemes customers, who will enjoy a faster experience our of the box with our Glazed demo installation profiles. As a side note: importing demo content is also twice as fast in our Drupal 8 installation profiles versus Drupal 7.

What is your experience?

Drupal's performance is a complex thing to test and I'm sure you can get different results in varying situations, if you have any questions about the test or if you want to share your own experience with Drupal 8's performance let me know in the comments!

Categories: Drupal

Review Roundup

Tabletop Gaming News - 21 April 2018 - 11:00am
Saturdaaaaaay! It’s the best day of the week (in my opinion). What cannot be accomplished with a day like today? Well, I know what can, going to do some gaming. I put together some Guild Ball minis for my friend last night. Today I’ll go hang out and play some board games up at the […]
Categories: Game Theory & Design

External Body Linker

New Drupal Modules - 21 April 2018 - 12:21am

Extlinker is a module for adding a target="_blank" attribute to the external links in your body content. It requires no special filter and works directly on the content saved to the database.

How It Works

When an entity is saved, Extlinker checks all the URLs in the body against a list of internal domains you configure in the Extlinker settings. If the href value of a link is not in that list of internal domains, Extlinker adds a target attribute to open the link in a new window.

Categories: Drupal

Advomatic: Diversity and Staying Grounded: Recapping Drupalcon 2018

Planet Drupal - 20 April 2018 - 3:03pm

It was great to get back to DrupalCon this year.  I really enjoyed the Con, and this was one of my favorite DrupalCons in the eight years I’ve been going. Drupal as a community is getting more serious about diversity. In the past, there’s been an undercurrent of people saying “diversity is good” for a... Read more »

The post Diversity and Staying Grounded: Recapping Drupalcon 2018 appeared first on Advomatic.

Categories: Drupal

Wyrd Posts Marauder Preview

Tabletop Gaming News - 20 April 2018 - 3:00pm
You know, most of the stuff for The Other Side has a sort of steampunk/old-timey look to it. Basically a Victorian-era aesthetic. Today’s preview looks much more futuristic than that. As always on Fridays, Wyrd makes them that much better with their The Other Side preview. In this case, we get a look at the […]
Categories: Game Theory & Design

Advomatic: A Week of Firsts at Drupalcon

Planet Drupal - 20 April 2018 - 2:56pm

I went to DrupalCon this year with the goal of doing things a bit differently this time. I’m a bit of an introvert with people at first, but I’ve been told I don’t come off that way. So, I decided to leverage that and just push myself through things that, in years past, I would... Read more »

The post A Week of Firsts at Drupalcon appeared first on Advomatic.

Categories: Drupal

MyEmma for Webform

New Drupal Modules - 20 April 2018 - 2:19pm

Integration with MyEmma in webforms for Drupal 8.

Requires install using composer, depends on this php emma library : composer require drupal/webform_myemma.

Once module is enabled, there are two steps:

Categories: Drupal

Saber & Blood Board Game Up On Kickstarter

Tabletop Gaming News - 20 April 2018 - 2:00pm
Central Europe. 1600s. The different states within the Holy Roman Empire are regularly fighting against one-another. There’s plenty of opportunity for those that want to make war their business to ply their trade. That’s where you find yourself in Saber & Blood, a new card-driven board game that’s up on Kickstarter now. From the campaign: […]
Categories: Game Theory & Design

Hook 42: Hook 42 at Drupaldelphia 2018

Planet Drupal - 20 April 2018 - 1:37pm

As part of Philly Tech Week this year, Drupaldelphia expanded their scope to include topics like Drupal, Agile, JavaScript (Node.js, Angular, React), case studies, and many more!!

Boomeranging back to Pennsylvania from DrupalCon Nashville, Adam Bergstein will be attending and presenting this year at Philadelphia's premier Drupal Camp.

Categories: Drupal

Samsara Board Game Up On Kickstarter

Tabletop Gaming News - 20 April 2018 - 1:00pm
Teachers, keep on teachin’. Preachers, keep on preachin’. Worlds, keep on turnin’, ’cause it won’t be too long. I’m so darn glad he let me try it again. ‘Cause my last time on Earth, I lived a whole world of sin. So glad that I know more better than then. Gonna keep on tryin’, ’till […]
Categories: Game Theory & Design

Sanctum of Twilight Expansion Now Available for Mansions of Madness

Tabletop Gaming News - 20 April 2018 - 12:00pm
As if Arkham didn’t have enough issues already, the secretive Order of the Silver Twilight has been increasingly gaining control behind the scenes. Paying off police officers, installing their own politicians, enacting policies that specifically help them… They’ve got to be up to something. But what? That’s for you to find out in the new […]
Categories: Game Theory & Design

Hearthstone game director Ben Brode departs Blizzard

Social/Online Games - Gamasutra - 20 April 2018 - 11:04am

Brode, who has worked on Hearthstone for 10 of his 15 years at Blizzard, has announced that he is leaving Blizzard to 'take a crazy risk' and help start a game development company of his own. ...

Categories: Game Theory & Design

Friday Snippets

Tabletop Gaming News - 20 April 2018 - 11:00am
Fridaaaaaaaaaaaaaay!!! Woooooooo!! Well-known by you readers as one of my most-favorite days of the week, Friday just has so much… potential. You get out of work and it’s like, “Man! I could do anything!” Ok, maybe not anything, but you know what I mean. So, as you get set for your weekend adventures, make sure […]
Categories: Game Theory & Design

Oomph Paragraphs

New Drupal Modules - 20 April 2018 - 10:43am
Categories: Drupal

Alakazoo Board Game Up On Kickstarter

Tabletop Gaming News - 20 April 2018 - 10:00am
A grand magic tournament is being held. Wizards and Witches from all over are looking to compete. The top prize will go to the magic-user that summons the greatest creature to their side. That’s where you find yourself in Alakazoo, a new board game that’s up on Kickstarter now. About the game: Alakazoo is a […]
Categories: Game Theory & Design

MegaMetroCity Coming to Kickstarter on April 24th

Tabletop Gaming News - 20 April 2018 - 9:00am
Next week, MegaMetroCity will be making its way to Kickstarter. The game emulates old-school beat-’em-up games like Double Dragon. In the game, players will work cooperatively to clean up the mean streets of enemy thugs. Make it to the end and make these slums safe for the average citizen again. The Kickstarter campaign will launch […]
Categories: Game Theory & Design

CiviCRM Blog: Building the Roparun Team Portal Part 1: Syncing civicrm participants to drupal user records

Planet Drupal - 20 April 2018 - 8:12am

This is a first blog post about how we build the team portal for Roparun.

But first what is Roparun? The Roparun is a relay race of over 500 kilometres from Paris and Hamburg to Rotterdam, where people in teams, take part in an athletic event to raise money for people with cancer. It’s also called an adventure for life. This is also clear from the motto, which for years has been: ‘Adding life to days, when days often can’t be added to life’.

So each year Roparun organizes this race and around 400 teams participate in the event. The first part of the project was to setup donation functionality and that is working right now.

The next part of the project is to create a new portal for team captains where they can manage their team data, (e.g. name of the team, start location and the individual team members). We have chosen to have this in a separate Drupal website.

In CiviCRM each team captain is registered as a participant to the Roparun event with the role team captain. The team captain can login into the portal as soon as he has been registered as a team captain and till the event is over.

The first part of this project is that we wanted the team captains being able to login and we have created a module called CiviMRF User Sync. This module build on top of the CiviMRF framework.

This user sync module uses the CiviCRM api to create drupal user accounts. See screenshot below for the configuration.

What you can see is that we use a custom api to retrieve the team captains. This custom api returns the email, contact id and the team id of the team captain. We store the e-mail address as the username and at the email field at the user level.

As soon as a new team captain is registered a new user record is created and the team captain receives an e-mail with a link to create a password.

As soon as an existing team captain is removed from CiviCRM the user account is cancelled and the team captain receives an email indicating that his account is disabled.

We have also created a drupal module to store the team id at the drupal user record and use this team id in the view (see https://github.com/CiviCooP/roparun_team_portal)

So the first bit is done, meaning a team captains can log in. The next bit is to build the portal with Drupal Views and Webforms. The building blocks we are going to use for that is CiviMRF Webform, CiviMRF Views and at the CiviCRM site the form-processor. I will keep you posted on the developments of the next steps.

APIArchitectureCase studies and user storiesDrupalExtensionsInterface and designTips
Categories: Drupal

Devel Generate Plus

New Drupal Modules - 20 April 2018 - 8:01am

This module is a repository of extra Devel Generate plugins that others might find useful. Patches to add others are welcome.

Current plugins
  • Queue items: populates up to three queues with test items.
Categories: Drupal

Steamforged Previews Harriet The Hat for Guild Ball

Tabletop Gaming News - 20 April 2018 - 8:00am
I guess that headline should have “spoiler warning” in it, but at this point, if you’ve not read the fluff for the Exiles box for Guild Ball, that’s on you. Long story short, not everybody made it out alive, and Harry is no more. However, his hat lives on and has found a new owner […]
Categories: Game Theory & Design

New Aurox APC Available to Order From Forge World

Tabletop Gaming News - 20 April 2018 - 7:00am
Slogging it on foot into battle is no fun. You’ve got enemy small-arms fire, the possibly difficult terrain, and have you ever had to smell what’s going on out there? Whenever possible, taking an APC to the combat line is going to be a better option. And for your Imperial troops, they can now hop […]
Categories: Game Theory & Design

Pages

Subscribe to As If Productions aggregator