Experiment with WordPress Caching: Light Cache versus WP-Cache 2 Experimento com WordPress cashing: Light Cache versus WP-Cache 2
§ Translator Contents Tradutor Sumário
WP-Cache 2 WP-Cache 2 and its younger cousin eo seu primo mais jovens WP Super Cache WP Super cache have become de-facto suggestion for reducing site load for WordPress blogs. se tornaram de facto sugestão para reduzir a carga site para WordPress blogs. I used WP-Cache 2 on all my blogs. Eu costumava WP-Cache 2 em todos os meus blogs. WP Super Cache despite its potential doesn’t improve upon the performance of WP-Cache 2 and brings in some problems. WP Super Cache apesar do seu potencial não melhorar após o desempenho de WP-Cache 2 e traz, em alguns problemas.
Note: In the past we did extensive tests on WP Super Cache versus WP-Cache 2 and we couldn’t find any significant performance difference in either. Nota: No passado fizemos testes extensivos em WP Super Cache versus WP-Cache 2 e não foi possível encontrar qualquer diferença significativa no desempenho. In fact WP-Cache 2 performed slightly better in our tests. Na verdade WP-Cache 2 realizada ligeiramente melhor nos nossos testes. However this article isn’t about that comparison. No entanto, este artigo não é sobre essa comparação. In the past we have seen that even with wp-cache 2 / wp super cache, we suffered significant performance problems during peak hours. No passado já vimos que, mesmo com wp-cache 2 / wp super cache, temos sofrido problemas de performance significativa durante as horas de ponta. Neither of the plugins scale very well with high volume of simultaneous accesses despite any claims you may hear to the contrary. Nem os plugins de escala muito bem com alto volume de acessos simultâneos, não obstante quaisquer reivindicações que você pode ouvir o contrário. Try, for example, a simple ab (Apache Bench) test with 500 concurrent threads and you will find that with wp-cache 2 your whole site literally hangs for extended periods. Tente, por exemplo, um simples ab (Apache Bench) ensaio concomitante com 500 fios e você verá que a wp-cache 2 todo o seu site literalmente trava durante períodos prolongados. You may even have to reboot your machine. Você pode até mesmo ter de reiniciar a máquina. We had to do it several times during our test. Nós tivemos de fazê-lo várias vezes durante o nosso teste. There are two ways around this problem. Há duas maneiras em torno deste problema.
If you have deep pockets like Se você tem grandes carteiras como WordPress.com , you can throw more machines to the mix. , Você pode jogar mais máquinas para a mistura. We decided to innovate instead. Estamos decididos em vez de inovar. Additionally we needed a better caching system for Além disso precisávamos de um melhor sistema de caching Translator Plugin Pro Tradutor plugin Pro (WordPress plugin to translate your blog to 13+1 languages) & especially (WordPress plugin para traduzir o seu blog para 13 +1 línguas) e especialmente Translator Plugin Gold Tradutor plugin ouro (WordPress plugin to translate your blog to 32 languages). (WordPress plugin para traduzir o seu blog para 32 idiomas). Actually there is a bit of history here. Na verdade, há aqui um pouco de história. Initially we used WordPress’ in-built object cache for translator plugins. Inicialmente usamos WordPress "em cache-objeto construído por tradutor plugins. Unfortunately object cache didn’t work too well for bloggers on shared hosting platforms. Infelizmente objeto cache não funcionou muito bem para os blogueiros na partilha de hospedagem plataformas. WordPress too realized the problems and removed file based object caching in 2.5. WordPress também percebeu os problemas e removidos arquivo objeto com base em 2,5 caching. We acted before that and replaced it with database based object cache. Temos agido antes que ele e substituído com banco de dados baseados objeto cache. It was a dramatic improvement but then database too has its limitations. Foi uma melhora dramática, mas depois de dados também tem as suas limitações. We went through several rounds of optimization and finally we had a pretty good performance to be proud of. Passamos por várias rondas de otimização e, finalmente, tivemos um desempenho muito bom para ser motivo de orgulho. We didn’t stop there. Nós não param por aí.
In our effort to find a better and simpler caching solution, both for WordPress blog and for Translator plugins we invented Light Cache. No nosso esforço para encontrar uma solução melhor e mais simples caching, tanto para WordPress blog e tradutor plugins para nós inventou Light Cache. Today we deployed it on this blog. Hoje, será implantado-lo neste blog. Tomorrow we will deploy it on all other blogs. Amanhã vamos desenvolvê-la em todos os outros blogs. What did we find out? O que é que descobrir?
Performance, performance & performance Desempenho, desempenho e performance
Couple of hours back I tested using ab (Apache Bench) a WordPress 2.5 blog (on Pentioum 4 1.8 Ghz). Casal de horas de volta Eu testado usando ab (Apache Bench) um blog WordPress 2,5 (em Pentioum 4 1,8 Ghz). I tried first with 100 threads fetching a page and doing 10, 000 cumulative requests from another machine. Tentei primeiro com 100 threads tirar uma página e fazer 10, 000 pedidos cumulativos de outra máquina. I got a performance of 13.5 milliseconds per request. Eu fui um desempenho de 13,5 milissegundos por solicitação. I did the similar test on the same blog using wp-cache 2 and got similar performance around 14.4 milliseconds. Eu fiz o teste semelhante com o mesmo blog usando wp-cache 2 e obteve resultados semelhantes de 14,4 milissegundos. Nothing to write home about. Nada de escrever sobre a casa.
Next I tried testing Light Cache with 500 threads performing 10, 000 requests. Próxima Tentei testes Light Cache com 500 threads executam 10, 000 pedidos. It came back with 13.2 milliseconds average performance. Ele voltou com 13,2 milissegundos desempenho médio. I tried the same test with wp-cache 2 and it hanged the machine. Eu tentei o mesmo teste com wp-cache 2 e se se enforcar a máquina. I rebooted and tried with 250 threads and again WordPress and in turn the whole machine froze. Eu tentei e reiniciado com 250 fios e novamente WordPress e, por seu turno, toda a máquina congelou. As I mentioned before I faced such problems with wp-cache 2 in the past. Como mencionei antes de me enfrentou esses problemas com wp-cache 2 no passado. In fact I face it almost every other day with heavy site load. Na verdade eu enfrentá-lo quase todos os outros dias com carga pesada site. I cannot explain it away with other factors like lower number of Apache threads etc. My site is tuned in every possible way, we also use eAccelerator. Eu não posso explicá-la com outros factores como a distância menor número de threads Apache etc Meu site está sintonizado de todas as maneiras possíveis, nós também utilizar eAccelerator.
I found out that Light Cache maintains its performance with 500 threads as will 100 concurrent threads. Eu descobri que a Light Cache mantém a sua performance com 500 tópicos como será concomitante 100 threads. While this may be good enough for many, I wasn’t fully satisfied. Embora isso possa ser suficientemente bom para muitos, eu não estava totalmente satisfeito. The real test of a caching plugin is with real site load. O verdadeiro teste de um plugin caching é a verdadeira site carga. So I did the unthinkable. Então eu fiz o impensável. I tested it on our live site, on this site. Eu testei ele viver em nosso site, neste site. It was early morning in USA and the site load was heavy. Era manhã cedo e no E.U.A. o site foi pesada carga. I was having 30-34% idle cpu time on average. Eu estava tendo cpu tempo ocioso 30-34% em média. I decided to run 100 concurrent threads from another server using ab to fetch big page on this site (92K). Eu decidi correr a 100 concomitante de outro servidor usando threads ab para buscar big página neste site (92K). I fully expected my site to hang. Estou plenamente de esperar o meu site para pendurar. The Apache Bench finished quickly and gave me performance of 11.8 milliseconds. O Apache Bench terminar rapidamente e me deu desempenho de 11,8 milissegundos. It was very surprising. Foi muito surpreendente. Now I upped the ante and increased the thread count to 200. Agora eu elevou o ante e aumentou a contagem de rosca 200. It came back with similar performance around 12 seconds. Ele voltou com um comportamento semelhante em torno de 12 segundos. The CPU idle time fluctuated a bit but not by much and the sar generated average remained almost same. A CPU tempo ocioso oscilou um pouco, mas não por muito e as sar gerada média permaneceu praticamente igual. This was the defining moment. Este foi o momento determinante. I knew I had a winner. Eu sabia que eu tinha um vencedor. Light Cache performed admirably in a live site with heavy load without breaking a sweat. Light Cache desempenho admirável viver em um local com alta carga sem quebrar um suor.
Light Cache comes with the basic functionality of wp-cache 2, setting cache time, showing stats, ability to clear cache etc. Light Cache is simple in design and does one job well, to serve lightning fast WordPress pages. Cache Light vem com a funcionalidade básica do wp-cache 2, fixando cache tempo, mostrando estatísticas, a capacidade de limpar cache etc Light Cache em design é simples e faz um trabalho bem, para servir relâmpago rápido WordPress páginas.
We may release it in near future as a separate product after some polishing and documentation. Nós podemos divulgá-la no futuro próximo como um produto distinto após algum polimento e documentação. However it will also be bundled with Translator Plugin Pro & Translator Plugin Gold plugins. No entanto, também serão empacotados com Translator Plugin Pro Gold & Translator Plugin plugins.
Update: I just tested our live site with 300 concurrent threads with a 87K document. Update: Eu apenas testada nosso site vivo com 300 threads concomitante com um documento 87K. The average time per request is 9.5 milliseconds! O tempo médio por pedido é 9,5 milisegundos!
Document Length: 87247 bytes Concurrency Level: 300 Time taken for tests: 94.616595 seconds Complete requests: 10000 Failed requests: 0 Write errors: 0 Total transferred: 876999240 bytes HTML transferred: 874640545 bytes Requests per second: 105.69 [#/sec] (mean) Time per request: 2838.498 [ms] (mean) Time per request: 9.462 [ms] (mean, across all concurrent requests) Transfer rate: 9051.73 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 134 358 1050.0 209 21263 Processing: 832 2452 2146.6 1987 26659 Waiting: 149 1181 2231.5 585 25878 Total: 966 2811 2383.0 2201 26794 Percentage of the requests served within a certain time (ms) 50% 2201 66% 2376 75% 2637 80% 2802 90% 3908 95% 5658 98% 10682 99% 14725 100% 26794 (longest request) Documento Comprimento: 87247 bytes Concurrency Nível: 300 Tempo tomadas para a realização de ensaios: 94,616595 segundo Complete pedidos: 10000 Falha pedidos: 0 Escrever erros: 0 Total transferidos: 876999240 bytes transferidos HTML: 874640545 bytes pedidos por segundo: 105,69 [# / sec] (média ) Tempo por solicitação: 2838,498 [ms] (média) Tempo por solicitação: 9,462 [ms] (quer dizer, em todos os pedidos concomitantes) Transfer rate: 9051,73 [Kbytes / seg] recebeu Connection Times (ms) min média [+ /-SD ] Mediana max Ligue: 134 358 1050 .0 209 21263 Processamento: 832 2452 2146,6 1987 26659 Esperando: 149 1181 2231,5 585 25878 Total: 966 2811 2383,0 2201 26794 Percentagem de pedidos servidos dentro de um certo tempo (ms) 50% 2201 66% 2376 75 % 2637 80% 2802 90% 3908 95% 5658 98% 10682 99% 14725 100% 26794 (mais longa pedido) Filed under Arquivado em Headline News Headline News , De Pro Blogging Blogging Pro , De Translator Plugin Pro Tradutor plugin Pro , De Web , De Web 2.0 Web 2,0 , De WordPress , De WordPress Plugin WordPress Plugin | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artigo |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |




April 29th, 2008 at 2:13 pm 29 de abril de 2008, 2:13 pm
I look forward to hearing more about this, both as a plugin, or as integrated into your translation plugins (happy customer here! Estou ansioso por ouvir mais sobre este assunto, tanto como um plug-in, ou como integrados na sua tradução plugins (cliente feliz aqui!
I had the actual problem with WP-Cache 2, which I had to install after your Translator Pro plugin basically quadrupled the visits to my blog. Eu tinha o problema real com WP-Cache 2, o que eu tinha para instalar depois da sua Translator Pro plugin basicamente quadruplicou as visitas ao meu blog.
After running it for a while I found out it does not work that well, and made my site hang. Após a publicá-lo por um tempo eu descobri que ele não funcionar bem, e fez o meu site pendurar.
Let me know if you want a beta-tester?! Deixe-me saber se você quiser um beta-teste?!
April 30th, 2008 at 10:18 am 30 de abril de 2008, 10:18 am
Thanks. Obrigado. We are already beta testing it on this blog and few other blogs. Já estamos a beta-teste sobre este blog e alguns outros blogs. Thanks for the offer. Obrigado pela oferta. We will let you you if we need any external testing. Vamos deixá-lo se você precisar de qualquer teste externo. So far we are extremely satisfied. Até agora, estamos extremamente satisfeitos. I pounded the live site with 300 concurrent threads from a different server in Europe and it returned 90K pages at an average of 9.4 seconds! Eu vivo o site trituradas concomitante com 300 fios de um servidor diferente na Europa e ele retornou 90k páginas em uma média de 9,4 segundos!
April 30th, 2008 at 3:05 pm 30 de abril de 2008, 3:05 pm
Wohey, not bad at all! Wohey, não mau de todo! I look forward to hearing more Angsuman. Estou ansioso por ouvir mais Angsuman. Keep up the good work. Mantenha-o bom trabalho.
May 6th, 2008 at 10:12 am 6 de maio, 2008, 10:12 am
[...] A brand new caching engine with blazing performance. [...] Um novo mecanismo de caching com surpreendentes resultados. It will not only serve translated pages faster it will also make your [...] Não vai servir apenas traduzido páginas mais rápido que também irá fazer a sua [...]