Benchmarking PHP code the right way

Опубликовано: 03 Ноябрь 2025
на канале: Tideways
548
46

Try our PHP Profiler: https://tideways.com/profiler/feature...

Subscribe to my newsletter for PHP performance content: https://tideways.com/newsletter?utm_s...

In this video, I show a list of preconditions for good benchmarking. One helpful tool for designing good benchmarks is Hyperfine, and I want to show how it works, what its benefits are, and what problems you still need to account for.

https://tideways.com/profiler/blog/ho...

Chapters:

00:00 Introduction
00:40 What is Hyperfine ?
01:27 Problems in Benchmarking PHP code
02:42 1. Not using a production equivalent environment
05:12 2. Writing PHP code that OPcache optimizes away
07:49 3. Not accounting for load on the test machine
09:10 4. Not accounting for startup time
10:38 5. Not repeating the tests
12:39 6. Not using statistical methods to compare the performance
14:40 7. Optimizing what does not matter
19:21 Conclusion


На этой странице сайта вы можете посмотреть видео онлайн Benchmarking PHP code the right way длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Tideways 03 Ноябрь 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 548 раз и оно понравилось 46 зрителям. Приятного просмотра!