Laravel integrates Swoole and simple AB test comparison performance and PHP code in phpstorm with debug Debug Configuration Swoole Service

Source: Internet
Author: User
Tags fpm install php php script

Install PHP swoole extension and install Laravel, do not describe the

Integration Laravel and swoole with this wheel, intrusive very small, a line of code to fix, recommend, today just use, can not predict whether the future will meet the pit

Https://github.com/swooletw/laravel-swoole

The document also speaks relatively clearly

After installation, with the AB software for the two modes of the simple pressure measurement (the machine opened too many things, ignoring the specific indicators, only to do the contrast, found that swoole take over PHP-FPM mode will improve the performance of a large section, one after the non-simultaneous operation)

/* Picture too little open the picture in a new tab */

Try the development debugging again

Two debug modes are configured (PHP Script and PHP Web Page mode)

PHP Script mode is configured as follows, relatively concise, only need to configure two places

PHP Web Page Mode relative configuration more

You're ready to start debugging.

First, start PHP in PHP-FPM mode, and open the right phone icon to turn on monitoring

When the http://127.0.0.1:3456/test is accessed in the browser, the page is blocked, and the breakpoint is triggered, the wake-up console

Second, start the service in CLI command line mode, turn on debugging, and start the service

When the http://127.0.0.1:1215/test is accessed in the browser, the page is blocked, and the breakpoint is triggered, the wake-up console

Laravel integrates Swoole and simple AB test comparison performance and PHP code in phpstorm with debug Debug Configuration Swoole Service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.