Skip to content

Instantly share code, notes, and snippets.

@pmurzakov
Last active September 10, 2021 22:01
Show Gist options
  • Save pmurzakov/b795cf5ec916394fcffe29e0611b1287 to your computer and use it in GitHub Desktop.
Save pmurzakov/b795cf5ec916394fcffe29e0611b1287 to your computer and use it in GitHub Desktop.
Badoo PHP performance -- useful links and snippets -- PHP Russia 2019 talk

Badoo Tech Blog: https://tech.badoo.com/ru/

Performance in general

Double VS single quotes: https://habr.com/ru/company/alfa/blog/447416/

Monitoring

Hardware

Quality of PHP service

Profiling

XHProf

https://github.com/phacility/xhprof

LiveProf

https://github.com/badoo/liveprof/

Perf

# perf record --call-graph dwarf,65528 -F 99 -p $(pgrep php-cgi | paste -sd "," -) -- sleep 20
# perf report

phpspy

https://github.com/adsr/phpspy

Flame Graphs

http://www.brendangregg.com/flamegraphs.html

Receipts

IS_ARRAY_IMMUTABLE

# php -d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.opt_debug_level=0x20000 immutable.php 

https://phpinternals.net/docs/is_array_immutable

Misc

Slides: https://drive.google.com/file/d/1Ar9kb7MM_iol6-Ne30sc5bWXSZS0R-RD/view?usp=sharing

Article with deeper coverage of the same topic: https://habr.com/ru/company/badoo/blog/430722/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment