さくらのレンタルサーバのPHPモジュールモードとCGIモードのレンダリング速度を比較

TL;DR

  • リプレイスされ新しくなったさくらのレンタルサーバに移行した
  • 新しいさくらのレンタルサーバと、古いさくらのレンタルサーバを使ってWordPressのレンダリング速度を比較した
  • 新しいさくらのレンタルサーバは古いさくらのレンタルサーバに比べて約2.1倍レンダリング速度が速かった

このブログはWordPressを使用して、さくらのレンタルサーバでホスティングしています。今年の4月ぐらいから、さくらのレンタルサーバのマシンが順次リプレイスされ始めていました。新しいマシンではPHPがモジュールモードになったり、ストレージがSSDになったり、WebサーバーがNginxになりHTTP/2が使えるようになりました。4月からさくらのレンタルサーバを申し込んだユーザーは新しいマシンを使えるようですが、私はリプレイス前に申し込んでいたため古いマシンでした。古いマシンのユーザーには順次新しいマシンに移行するための初期費用無料と1ヶ月の利用が無料になるクーポンを配るということでした。私にも6月ぐらいにクーポンが届いたので、どれぐらいレンダリング速度が改善するか気になっていたため8月はじめぐらいに移行してみました。移行したのはいいのですが、肝心の速度の改善について計測できていなかったので確認してみました。

計測環境

新しい環境と古い環境以下の条件を揃えています。

  • WordPressのプラグイン
  • ブログポストの内容

新しいさくらのレンタルサーバ

PHP: PHP 7.2.8 モジュールモード
Web server: Nginx (HTTP/2)

古いさくらのレンタルサーバ

PHP: PHP 7.2.8 CGIモード
Web server: Apache (HTTP/1.1)

使用したWordPressのプラグイン

  • Akismet Anti-Spam
  • Google Analytics for WordPress by MonsterInsights
  • JP Markdown
  • MathJax-LaTeX
  • WP Code Highlight.js

ブログポストの内容

約3000文字のランダムな文字列

計測に使用したアプリ

Chrome (68.0.3440.106)のAudits。
設定は以下の通りです。
Device: Desktop
Throttling: No throttling
Clear storage: True

計測方法

計測のために用意したブログポストをAuditsで計測しました。計測結果のFirst Meaningful Paintの時間を5回計測した平均を求めました。First Meaningful Paintは最初のコンテンツが表示されたとユーザーが感じる時間を表しています。

測定結果

First Meaningful Paintの値は以下の通りです。
新しいさくらのレンタルサーバ: 488ms
古いさくらのレンタルサーバ: 1026ms

古いさくらのレンタルサーバに比べて新しいさくらのレンタルサーバは約2.1倍レンダリングが早い結果となりました。体感でもキャッシュが無い状態からページを表示した時にテキストが表示される時の時間差を感じました。500ms近くも違えば早いと感じますね。

当たり前ではありますが、プラグインやコンテンツの内容によってレンダリング時間も変わります。また、共用サーバーのため他のユーザーの利用状況でも結果は変わるでしょう。ですが、新しいさくらのレンタルサーバを使った方がコンテンツのレンダリング速度の改善を見込めるので、積極的に移行すべきかと思います。

Traveling Germany and U.K.

I traveled to Germany and U.K. from Jul 5 to Jul 27.

My things

  • Two wallets (the one is sub)
  • Clothes (three pairs of under ware, a pair of pants, a pair of short pants, a pair of short pants for sleeping)
  • A multiple power plug adapter
  • A hand towel and face towel
  • Documents (booking information for flight, insurance)
  • A beach sandal
  • Wet Tissue
  • Teeth brash
  • A shoulder bag
  • An umbrella
  • Some of ziplock
  • Foreign language book
  • A windbreaker
  • A portable battery and some cables
  • A three-pronged outlet
  • A string for wallet
  • A camera
  • An iPhone
  • An earphone

These are the things I brought for my travel. I stuffed these things into my backpack.

Day 1 Berlin

I went to Berlin from Haneda airport via Munich.

First, arrived in Berlin central station and a hostel in Berlin. I felt sleepy by jet lag.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 2 Berlin

I visited Berlin first.

The Berlin Wall

Post from RICOH THETA. – Spherical Image – RICOH THETA

Berlin Cathedral

Post from RICOH THETA. – Spherical Image – RICOH THETA

I tried a Berliner Weisse (Berlin style beer). I felt its taste was sour and not the beer for me, and also I didn’t have all of them because I’m full at the time.

Day 3 Berlin to Frankfurt

I moved to Frankfurt by train.
First, I missed a train and second I take on a train with an additional cost of about 140 Euro😭.

Day 4 Frankfurt

It was pretty dirty around the central station in Frankfurt. I had a Schnitzel and an Apple wine and Beer for lunch. The apple wine was good. I would like to drink it in Japan. After lunch, I took on a hop-on-hop-off bus for touring around the center of the city.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 5 Frankfurt to Stuttgart

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 6 Stuttgart to Konstanz

I only visited the Mercedes-Benz museum. There are many cars there.

I moved by train and stay in a Switzerland side hotel.

Day 7 Konstanz

Reichenau Island

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 8 Konstanz to Garmisch-Partenkirchen

I used Flixbus’s bus to move to Garmisch-Partenkirchen because it was cheaper than the DB train. But the coach had some trouble (delay, the bus stop is far from Garmisch-Partenkirchen station about 2km), so I might I don’t use Flixbus next time.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 9 Garmisch-Partenkirchen

I visited mount Zugspitze and AlpspiX. The town is best I visited in Germany.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 10 Garmisch-Partenkirchen to Fussen

I went to the street the woman in the hotel telling me it’s beautiful. There are wall paintings both sides in the street 200 meters long.

Day 11 Fussen

I went to Neuschwanstein Castle. I think the castle is better in winter than in summer because the white castle’s wall matches snow.

Day 12 Fussen to Munich

Day 13 Munich

Marienplatz and around here. Notably, the new town hall and the Hofbräuhaus am Platzl was impressive.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 14 Munich to London, U.K.

I used the easyJet to move to London from Munich. I assumed that the airline strict with hand baggage, but I was not any checks when I started boarding.

Day 15 London

I went to the British Museum in the morning. Then I met my friend then went to 10 downing street, Buckingham Palace in the afternoon, and Japan Center. I had sushi in the Japan center it is not good and more expensive than having it in Japan.

Day 16 London

I went to several markets all the day. Spitalfields Market, Covent Garden, and Borough Market. I bought a bracelet for my mother, and I could eat jellied eels in Borough Market (this was a TODO in London!😀)

Day 17 London

I went on a day trip to southern the Seven Sisters. It is a beautiful park in U.K.

Day 18 London to Preston

I met my friend and was taken around to London. The changing of the guard) in Buckingham Palace, The Tower Bridge (also we saw the opening of the gate. That is very rarely!), A brewery and tasted some beers. Then we move to Preston.

Day 19 Preston

The Morning Tea

My friend took me to Blackpool and Blackpool Tower. The tower was build based on the Eiffel Tower, and I brought some Blackpool Rock. I have a fish and chips with Mushy Peas for lunch. This is my only food in U.K. it is not good because it was very oily😅. Then we went to authentic British pubs in Preston, and I stayed at my friend’s home.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 20 Preston to Windermere

I had a Full English Breakfast and moved to Windermere. I arrived at Windermere station evening, and I was pretty tired, so I decided just stayed a hotel in the day.

Day 21 Windermere

Orest Head is near Windermere station. It takes 15 minutes from the station on foot.

I went to Keswick by bus number 555 for seeing Castlerigg Stone Circle.

Then went Grasmere and bought some Sarah Nelson’s Grasmere Gingerbreads and then hiked from Grasmere to Rydal Mount. It takes about two hours.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Then move to Waterhead pier from Rydal Mount and took on a ferry to Bowness.

When I arrived in Bowness just went to Windermere station and
a supermarket for dinner and went back to my hotel.

Day 22 Windermere to Heathrow airport

I just moved to Heathrow airport. I was in a hurry because a train I reserved from Oxenholme Lake District to London delayed about 45 minutes. I had never seen that situation. I was glad I had enough time to depart about three hours.

Post from RICOH THETA. – Spherical Image – RICOH THETA

Day 23 Tokyo, Japan

It was hot and with a high degree of moisture💦.

The unuseful things I brought for my traveling

iPad

Basically, the things we can do on iPhone and iPad are same. The iPad just has a bigger display. I thought it was useful for reading books, but I could read with my iPhone, not iPad. And also I didn’t have time to use iPad in hotels or some other places. It only gained my baggage weight.

A pair of pants

Germany and U.K. were hot! I don’t need it in July.

Foreign language textbook

I couldn’t speak and listen German just by learning German for a few days.

A three-pronged outlet

This outlet was for only Japan. I didn’t notice that. For instance, it didn’t work on 240v.

A string for wallet

It was just annoying. Eventually, I didn’t use it.

About three weeks traveling

I enjoyed at first of one week. But after two weeks, I was starting to be boring. So I think that the number of days for traveling is about 10 days for me.

Proposal of CEDEC 2018

I proposed the automatic reply system for our customer support to CEDEC 2018. Last week, CEDEC 2018 committee announced proposals adoptions. My proposal was not adopted, I am afraid. The causes I thought is that I just created an automatic reply system so I should have included about applying the system to our customer support and operation and feedback from our customer support on my proposal, but I did not finish these tasks yet. I will propose again what include considerations about above causes next year!