SlidePub
Home
Categories
Login
Register
Home
Business
意外と知らない処理速度測定の仕方(第6回 札幌PHP勉強会 登壇資料スライド内容)
意外と知らない処理速度測定の仕方(第6回 札幌PHP勉強会 登壇資料スライド内容)
sapporogamer
0 views
9 slides
Oct 18, 2025
Slide
1
of 9
Previous
Next
1
2
3
4
5
6
7
8
9
About This Presentation
第6回 札幌PHP勉強会で発表したスライドです。
Size:
100.5 KB
Language:
none
Added:
Oct 18, 2025
Slides:
9 pages
Slide Content
Slide 1
意外と知らない処理速度測定の仕方
2025年10月18日
第6回 札幌PHP勉強会
上垣 雅弘
Slide 2
自己紹介
睦月です。本名は上垣 雅弘です。
Xのアカウントは @ichigats です。
スマホゲの中の中の人や某学園大のコンピュータ室
の
管理とか色々やってました。
今期の推しアニメは「最後にひとつだけお願いして
もよろしいでしょうか」です。
Slide 3
皆さん、書いたコードの速度測定してますか?
Slide 4
速度測定には microtime()というメソッドが
よく使われています。
Slide 5
ではmicrotime()のリファレンスを
見てみましょう。
https://www.php.net/manual/ja/function.mi
crotime.php
Slide 6
ん?
Slide 7
>パフォーマンスの計測には、 hrtime()を使う
ことをお勧めします。
Slide 8
では、hrtime()のリファレンスを
見てみましょう。
https://www.php.net/manual/ja/function.hrt
ime.php
Slide 9
まとめ
microtime()はC言語のgettimeofday()システムコール
が非推奨になったため、速度測定には hrtime()を
使いましょう。
hrtime()はデフォルトで falseになっていて
配列で返すので必ずパラメータに trueを入れましょう。
hrtime(true)はシステム時間をマイクロ秒で
取得するため秒に変換するときは 1e+9で
割りましょう。
Tags
php
Categories
Business
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
0
Slides
9
Age
65 days
Related Slideshows
1
DTI BPI Pivot Small Business - BUSINESS START UP PLAN
MeljunCortes
44 views
1
CATHOLIC EDUCATIONAL Corporate Responsibilities
MeljunCortes
42 views
11
Karin Schaupp – Evocation; lançamento: 2000
alfeuRIO
43 views
10
Pillars of Biblical Oneness in the Book of Acts
JanParon
40 views
31
7-10. STP + Branding and Product & Services Strategies.pptx
itsyash298
51 views
44
Business Legislation PPT - UNIT 1 jimllpkggg
slogeshk98
43 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-9)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better