Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
第114回PHP勉強会 Blackfireを使ったLaravelアプリのパフォーマンス改善
Search
amymd
May 31, 2017
Programming
0
800
第114回PHP勉強会 Blackfireを使ったLaravelアプリのパフォーマンス改善
amymd
May 31, 2017
Tweet
Share
More Decks by amymd
See All by amymd
【LaraLab vol.2】Laravel Zeroさわってみた
amymd
0
1.6k
Other Decks in Programming
See All in Programming
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
620
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
360
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
190
CQRS/ES avec Symfony, c’est (trop) bien !
jeremyfreeagent
1
640
VSCodeでのDatabricks開発もお勧めしたい/I would also recommend Databricks development with VSCode.
kazumain
0
250
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
エンターテイメント業界で利用されるAWS
demuyan
0
210
코틀린으로 멀티플랫폼 만들기
pangmoo
0
140
Designing for tomorrow's programming workflows
honnibal
PRO
2
120
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
120
try! Swift Tokyo 2024のLT枠に採択されたプロポーザルを出すときに考えていたこと
ski
0
350
What We Can Learn From OSS
inouehi
0
420
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Docker and Python
trallard
33
2.7k
Building Your Own Lightsaber
phodgson
98
5.7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
We Have a Design System, Now What?
morganepeng
42
6.7k
Happy Clients
brianwarren
91
6.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
259
12k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.3k
A Philosophy of Restraint
colly
196
16k
The Cult of Friendly URLs
andyhume
74
5.7k
Transcript
Blackfireを使った Laravelアプリ パフォーマンス改善 オールアバウト 山田亜美
ってご存知ですか?
Blackfireと ▪ PHP プロファイラーサービス ◦ https://blackfire.io/ ▪ ど メソッドが何回呼 れてるかわかる
▪ Agentをインストールするだけ ▪ 簡単にPHP パフォーマンス検証ができる ◦ https://www.youtube.com/watch?v=AygjcT_l sQI
Blackfire 画面 引用:https://blackfire.io/docs/reference-guide/analyzing-call-graphs
ボトルネック調査 ポイント☝
ボトルネック調査 ポイント:コールグラフ 赤くなっている箇所に注目すべし
ボトルネック調査 ポイント:メソッド一覧 ソートで呼び出し回数や 処理時間 多いメソッドを見つけるべし
ボトルネック調査 ポイント:メソッド 呼び出し ɚ 虫メガネを活用すべし
Blackfireを使って パフォーマンス改善 した結果
Blackfireを使った結果、よかったこと ▪ サイト パフォーマンス向上 ◦ 約10% 無駄な処理 削減 ◦ 何度も実行されるメソッド
バグ発見 ▪ Laravelフレームワーク側 処理 理解 ◦ Eloquent, ServiceProvider, Facade… ちょっとした実装でも、余計な処理を していないか心がけるようになった
「そんな速度に 影響ないし… 都度処理しよ」
本当にそれで 大丈夫?
塵も積もれ 山となる
小さな処理 積み重 が 大きな影響を与える
小さな処理 改善が 大きな改善となる