PHP web application performance measurement tool

三世轮回 提交于 2021-02-17 06:37:06

问题


Need some web application performance measurement tool.. Can you guys suggest me some better ones..

Purpose: First, app is built on Lumen and Dashboard is built upon Laravel. So why I want something is to measure all requests performance to app and then I can to note down results of each and every requests' time consumption, based on that app can be optimized in better way

I did some google found JMeter is most of the people's choice, as its from apache and does the job but it looks lil complex, also found https://locust.io/ interesting, that I'm gonna give it a try

But I would more like to get experts suggestions or advice on this

Thanks!


回答1:


There is quite a number of free load testing tools and the absolute majority of them supports HTTP protocol so feel free to choose any.

Regarding JMeter and Locust, if you can develop code in Python - go for Locust as you won't have to learn new things and will be able to start right away.

If your Python programming skills are not that good I would recommend reconsidering JMeter as it is not that complex at all:

  • JMeter is GUI based so you can create your test using mouse.
  • JMeter comes with HTTP(S) Test Script Recorder so you will be able to create test plan "skeleton" in few minutes using your favourite browser
  • JMeter supports way more protocols, i.e. you can load test databases via JDBC, mail servers via SMTP/IMAP/POP, MQ servers via JMS, etc. while Locust is more HTTP-oriented, if you need more - you have to code

If above points sound promising check out JMeter Academy - the fastest and the most efficient way of ramping up on JMeter as of now.




回答2:


XHProf you can use it check every function exec time! it can show you with a web gui!

https://pecl.php.net/package/xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based navigational interface. The raw data collection component is implemented in C (as a PHP extension). The reporting/UI layer is all in PHP. It is capable of reporting function-level inclusive and exclusive wall times, memory usage, CPU times and number of calls for each function. Additionally, it supports ability to compare two runs (hierarchical DIFF reports), or aggregate results from multiple runs.



来源:https://stackoverflow.com/questions/48181230/php-web-application-performance-measurement-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!