PHP multi cURL performance worse than sequential file_get_contents
问题 I am writing an interface in which I must launch 4 http requests to get some infomation. I implemented the interface in 2 ways: using sequential file_get_contents. using multi curl. I have benchmarked the 2 versions with jmeter. The result shows that multi curl is much better than sequential file_get_contents when there's only 1 thread in jmeter making requests, but much worse when 100 threads. The question is: which could bring the bad performance of multi curl? My multi curl code is as