简体   繁体   English

Drupal vs WordPress性能比较

[英]Drupal vs WordPress performance comparison

In the beginning i built my site - bemcapaz.net - on Wordpress. 一开始我在Wordpress上建立了我的网站 - bemcapaz.net。 But after having to hack the core and build lots of stuff through direct programming I decided to move on to Drupal. 但是在不得不破解核心并通过直接编程构建大量内容后,我决定转向Drupal。

Drupal besides being a CMS focused more on community websites is great for doing anything you can imagine in a really simple way, even a blog which was what I created. Drupal除了是一个专注于社区网站的CMS之外,还可以用非常简单的方式做任何你能想象的事情,甚至是我创建的博客。

My question now is, which one offers the best performance? 我现在的问题是,哪一个提供最佳性能? I think Drupal looks to be really heavier than Wordpress but since I'm not an advanced programmer I have no idea how to evaluate which one offers the fastest MySQL requests and loading times of the web pages. 我认为Drupal看起来比Wordpress更重,但由于我不是高级程序员,我不知道如何评估哪一个提供最快的MySQL请求和网页的加载时间。

Thanks. 谢谢。

Drupal is definitely heavier in the sense that it runs more queries per page once you've customized it. Drupal肯定比较重,因为一旦你定制了它,它每页运行更多的查询。 Using modules like Views, you can also build your own dynamic queries to drive widgets and pages. 使用像Views这样的模块,您还可以构建自己的动态查询来驱动窗口小部件和页面。 Those can be as speedy or as slow as the underlying combination of joins allows. 这些可以像连接的基础组合所允许的那样快速或缓慢。

On the other hand, Drupal does have much more robust caching controls. 另一方面,Drupal确实有更强大的缓存控件。 Full-page output caching for anon users, granular caching of widget output, and granular caching of any data retrieved by a Views query can all combine to help quite a bit. 匿名用户的整页输出缓存,窗口小部件输出的粒度缓存以及由Views查询检索的任何数据的粒度缓存都可以帮助完成。 There are also plugin modules like "Boost" or "Memcached" that let you augment that underlying cache system with materialized HTML files in the filesystem (bypassing Drupal directly in favor of apache), or a memcached server that stores all the cached information in memory rather than the database. 还有像“Boost”或“Memcached”这样的插件模块,可以让您使用文件系统中的物化HTML文件扩充底层缓存系统(直接绕过Drupal支持apache),或者将所有缓存信息存储在内存中的memcached服务器而不是数据库。

If you're looking to discover hot spots in a Drupal site you should also install the Devel module; 如果您想在Drupal站点发现热点,您还应该安装Devel模块; it allows you to get query counts and detailed query times for each page on the site, and track them down to the module that's running them. 它允许您获取站点上每个页面的查询计数和详细查询时间,并将它们跟踪到运行它们的模块。

Don't know about Drupal, but in WP you can estimate query time with following code: Just add it to your footer, after any queries. 不知道Drupal,但在WP中,您可以使用以下代码估计查询时间:在任何查询之后,只需将其添加到页脚。

<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds.

I suppose, performance for both CMS depends on numbers and complexity of queries and caching mechanism. 我想,CMS的性能取决于查询的数量和复杂性以及缓存机制。 If you are using them both wisely, your performance gonna be OK. 如果你明智地使用它们,你的表现就会好起来的。 I mean - ask your database only for info you really need ;) 我的意思是 - 只询问您的数据库中您真正需要的信息;)

I've heard Drupal's caching mechanisms are super aggressive compared to other CMS systems, but I don't know anything concrete. 我听说Drupal的缓存机制与其他CMS系统相比具有超级攻击性,但我不知道具体的内容。 Your best bet would be to do a quick benchmark of both. 你最好的选择是对两者做一个快速的基准测试。 For the most part, whichever one makes fewer SQL queries is faster,. 在大多数情况下,无论哪一个SQL查询较少,都会更快。 Drupal should make fewer queries because of its use of caching, so my guess is that Drupal is faster, if only by a bit. 由于使用缓存,Drupal应该减少查询次数,所以我的猜测是Drupal更快,如果只是一点点。

But honestly, I don't think it matters too much, unless you're getting millions of unique hits a day. 但说实话,我认为这并不重要,除非你每天获得数百万次独特的点击。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM