Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ざっくり分かる WordPress サイトのチューニング/speed-up-wordpress-site

ざっくり分かる WordPress サイトのチューニング/speed-up-wordpress-site

2016/07/09 WordCamp Kansai 2016

Ca17a082a30f4cbfed1d0a6dacbe3af2?s=128

shin1x1

July 10, 2016
Tweet

Transcript

  1. ɹ!shin1x1 2016/07/09 8PSE$BNQ,BOTBJ ͬ͘͟Γ෼͔Δ 8PSE1SFTTαΠτͷ νϡʔχϯά

  2. ͳΜͪΌͬͯ ୸ਫԽ෺ϓν੍ݶ

  3. μΠΤοτͰ େ੾ͳ͜ͱ

  4. ମॏΛଌΔ

  5. ࠓͷମॏ //LH ˣ ໨ඪମॏ ..LH

  6. 8PSE1SFTTαΠτ νϡʔχϯά νϡʔχϯάͰ΋େࣄͳͷ͸ɺ·ͣܭଌ

  7. ଌఆͯ͠ ਺ࣈͰߟ͑Δ

  8. D .BTBTIJ4IJOCBSB!TIJOY Ԡ౴଎౓ʢϨεϙϯελΠϜʣ w)551ϦΫΤετΛૹ৴ͯ͠ɺ
 Ϩεϙϯε͕ฦͬͯ͘Δ·Ͱͷ଎౓ w୯ҐNTʢϛϦඵඵʣ w͓͓Αͦɺ਺NTʙ਺ઍNT ਺ສNTͩͱඵҎ্ͳͷͰ஗͍

  9. D .BTBTIJ4IJOCBSB!TIJOY Ԡ౴଎౓ͷܭଌ ϒϥ΢βͷ֦ுπʔϧ͕खܰ ετοϓ΢Υον͸΍ΊΑ͏

  10. D .BTBTIJ4IJOCBSB!TIJOY Ԡ౴଎౓ͷܭଌ

  11. D .BTBTIJ4IJOCBSB!TIJOY 8BJUJOH 55'# αʔόͰͷॲཧ࣌ؒ NT Ԡ౴଎౓ͷܭଌ

  12. D .BTBTIJ4IJOCBSB!TIJOY ඵؒϦΫΤετʢεϧʔϓοτʣ wඵؒͷ)551ϦΫΤετ਺ w୯ҐSQTʢSFRTFD STʣ w͓͓Αͦɺ਺SQTʙ਺ສSQT

  13. D .BTBTIJ4IJOCBSB!TIJOY ඵؒϦΫΤετͷܭଌ w)551ෛՙπʔϧ wBC TJFHF +.FUFS (BUMJOHͳͲͳͲ wखܰͳͷ͸ɺBCʢ"QBDIF#FODIʣ

  14. BCʢ"QBDIF#FODIʣ $ ab -c 100 -n 5000 “http://192.168.33.121:6081/“ Concurrency Level:

    100 Time taken for tests: 4.832 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 73969050 bytes HTML transferred: 71760000 bytes Requests per second: 1034.87 [#/sec] (mean) Time per request: 96.630 [ms] (mean) Time per request: 0.966 [ms] (mean, across all concurrent requests) Transfer rate: 14950.86 [Kbytes/sec] received
  15. ֓ࢉͷ਺ࣈ

  16. D .BTBTIJ4IJOCBSB!TIJOY 8PSE1SFTT୯Ұهࣄ w8PSE1SFTT w1)1 w)5.- ಉ͡ϖʔδͰͷ଎౓Λൺֱ

  17. Ԡ౴଎౓ εϧʔϓοτ εϧʔϓοτ ൺ 8PSE1SFTT NT SQT  1)1 NT

    SQT  )5.- NT SQT  BCDOlIUUQBSDIJWF ઈର஋͸؀ڥͰมΘΔͷͰɺ૬ର஋Ͱ೺Ѳ
  18. νϡʔχϯάํ๏

  19. D .BTBTIJ4IJOCBSB!TIJOY νϡʔχϯάํ๏ w஗͍ϓϥάΠϯ΍ςʔϚͷରԠ w1)1࣮ߦ؀ڥ wΩϟογϡ ͬ͘͟Γ෼͚ͯޮՌ͕͋Γͦ͏ͳ΋ͷ

  20. ஗͍ϓϥάΠϯ΍ςʔϚ

  21. D .BTBTIJ4IJOCBSB!TIJOY %FCVH#BSΛ࢖ͬͨௐࠪ http://knowledge.sakura.ad.jp/tech/283/

  22. D .BTBTIJ4IJOCBSB!TIJOY %FCVH#BSΛ࢖ͬͨௐࠪ http://knowledge.sakura.ad.jp/tech/283/ w%FCVH#BS %FCVH#BS&YUFOEFS w1SPpMFS w4/4΁ͷ໰͍߹Θͤʢ਺ඦNTʣ͕ෳ਺

  23. 1)1࣮ߦ؀ڥ

  24. D .BTBTIJ4IJOCBSB!TIJOY 1)1࣮ߦ؀ڥ w1)1 w1)1 01DBDIF w1)1 01DBDIF w))7.

  25. Ԡ౴଎౓ εϧʔϓοτ εϧʔϓοτൺ 1)1 NT SQT  1)1 01DBDIF NT

    SQT  1)1 01$BDIF NT SQT  ))7. NT SQT  BCDOlIUUQBSDIJWF
  26. D .BTBTIJ4IJOCBSB!TIJOY 8PSE1SFTTPO1)1 http://www.1x1.jp/blog/2015/07/php7-on-wordpress.html

  27. Ωϟογϡ

  28. D .BTBTIJ4IJOCBSB!TIJOY Ωϟογϡ wॲཧ݁ՌΛอଘͯ͠ɺ࠶ར༻ wखؒͱޮՌͷόϥϯε͕ྑ͍ w༷ʑͳϨΠϠʔͰͷΩϟογϡ͕͋Δ

  29. D .BTBTIJ4IJOCBSB!TIJOY Ωϟογϡͷ஫ҙ఺ w޲͖ෆ޲͖͕͋Δ w؅ཧը໘΍ϩάΠϯϢʔβͷૢ࡞͸
 Ωϟογϡ͠ͳ͍ wهࣄΛߋ৽ͨ͠ΒɺΩϟογϡΛΫϦΞ w1$ϞόΠϧΛผͷΩϟογϡͱ͢Δ

  30. D .BTBTIJ4IJOCBSB!TIJOY ΩϟογϡʹΑΔνϡʔχϯά wΩϟογϡܥϓϥάΠϯ
 ʢ814VQFS$BDIFͳͲʣ wOHJOYGBTUDHJ@DBDIF w7BSOJTI$BDIF

  31. D .BTBTIJ4IJOCBSB!TIJOY 814VQFS$BDIF ΩϟογϡΛฦ͢

  32. D .BTBTIJ4IJOCBSB!TIJOY 814VQFS$BDIF ΩϟογϡΛฦ͢ wઃఆ͕༰қ w8PSE1SFTTʹಛԽ wޮՌ΋ͦΕͳΓʹ͋Δ

  33. D .BTBTIJ4IJOCBSB!TIJOY OHJOYGBTUDHJ@DBDIF ΩϟογϡΛฦ͢

  34. D .BTBTIJ4IJOCBSB!TIJOY OHJOYGBTUDHJ@DBDIF ΩϟογϡΛฦ͢ w1)1'1.ͷ݁ՌΛΩϟογϡ wΩϟογϡ͕͋Ε͹ɺ1)1͢Β࣮ߦ͠ͳ͍ wࣗ෼ͰΩϟογϡͷ੍ޚ͕ඞཁ

  35. D .BTBTIJ4IJOCBSB!TIJOY 7BSOJTI$BDIF ΩϟογϡΛฦ͢ ݩͷߏ੒͸ͦͷ··

  36. D .BTBTIJ4IJOCBSB!TIJOY 7BSOJTI$BDIF ΩϟογϡΛฦ͢ ݩͷߏ੒͸ͦͷ·· wΩϟογϡʹಛԽͨ͠)551ϦόʔεϓϩΩγ wOHJOYͷϨεϙϯεΛΩϟογϡ wࣗ෼ͰΩϟογϡͷ੍ޚ͕ඞཁ
 ʢ7$-Ͱॊೈͳઃఆ͕Մೳʣ

  37. D .BTBTIJ4IJOCBSB!TIJOY 7BSOJTI$BDIFར༻ྫ wͱ͋Δ$.4ͷલʹ഑ஔ w SFRN w5IVOEFSJOH)FSE໰୊ʹ΋ରԠ w΋͠΋ͷ࣌ͷ੾Γࡳʹ http://www.1x1.jp/blog/2013/12/varnish-cache.html

  38. Ԡ౴଎౓ εϧʔϓοτ εϧʔϓοτൺ 1)1 NT SQT  814VQFS $BDIF NT

    SQT  OHJOY GBTUDHJ@DBDIF NT  SQT  7BSOJTI$BDIF NT SQT  BCDOlIUUQBSDIJWF
  39. ·ͱΊ

  40. D .BTBTIJ4IJOCBSB!TIJOY ·ͱΊ wଌఆͰ͖ͳ͍΋ͷ͸ɺνϡʔχϯάͰ͖ͳ͍ wΩϟογϡͷ׆༻͕؊ wա৒ʹ΍Βͳͯ͘Α͍

  41. D .BTBTIJ4IJOCBSB!TIJOY !TIJOY !TIJOY D .BTBTIJ4IJOCBSB!TIJOY