Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
第114回PHP勉強会 Blackfireを使ったLaravelアプリのパフォーマンス改善
Search
amymd
May 31, 2017
Programming
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
第114回PHP勉強会 Blackfireを使ったLaravelアプリのパフォーマンス改善
amymd
May 31, 2017
More Decks by amymd
See All by amymd
【LaraLab vol.2】Laravel Zeroさわってみた
amymd
0
1.7k
Other Decks in Programming
See All in Programming
dotNET_vulnclicker_intro.pdf
deka_morita
0
130
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
390
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
470
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
490
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
360
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
190
R8 の設定見直しでアプリサイズ削減
andpad
0
190
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
130
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
260
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
520
カツオ、ご期待ください
suneo3476
0
160
Featured
See All Featured
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Visualization
eitanlees
153
17k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
350
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
530
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
790
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
450
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
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… ちょっとした実装でも、余計な処理を していないか心がけるようになった
「そんな速度に 影響ないし… 都度処理しよ」
本当にそれで 大丈夫?
塵も積もれ 山となる
小さな処理 積み重 が 大きな影響を与える
小さな処理 改善が 大きな改善となる