Laravel Webservice + Nginx supports 8.000 requests per second
Hi Guys,
I'm hosting my Laravel Webservice at AWS using an instance M4.Large and at my AB tests I can't have a response with more than 300 requests per second on a route that return only a simple text?
Laravel route:
Route::get('foo', function () { return 'Hello World'; });
AB Test result:
Server Software: nginx/1.4.6 Server Hostname: 177.92.41.12/foo Server Port: 80
Document Path: /foo Document Length: 11 bytes
Concurrency Level: 300 Time taken for tests: 6.673 seconds Complete requests: 2000 Failed requests: 0 Total transferred: 740000 bytes HTML transferred: 22000 bytes Requests per second: 299.70 [#/sec] (mean) Time per request: 1000.998 [ms] (mean) Time per request: 3.337 [ms] (mean, across all concurrent requests) Transfer rate: 108.29 [Kbytes/sec] received
Connection Times (ms) min mean[+/-sd] median max Connect: 320 321 1.8 321 334 Processing: 327 617 232.2 551 1815 Waiting: 327 617 232.2 551 1815 Total: 648 938 233.6 871 2141
Percentage of the requests served within a certain time (ms) 50% 871 66% 879 75% 883 80% 887 90% 1017 95% 1543 98% 1824 99% 2068 100% 2141 (longest request)
Can anybody help me with that?
Best Regards,
Please or to participate in this conversation.