spiral / app

Spiral Framework Skeleton HTTP Application: Queue, Console, Cycle ORM
https://spiral.dev/
MIT License
191 stars 20 forks source link

The Framework ROCKS! Amazing :) #19

Closed sujit-baniya closed 4 years ago

sujit-baniya commented 4 years ago

I just make a load test and the result is just amazing

System: Ubuntu 18.04 (i7 9700K, 64GB RAM)

Benchmark: Laravel + RoadRunner (hello world): https://github.com/avto-dev/roadrunner-laravel

Server Software:        
Server Hostname:        127.0.0.1
Server Port:            8080
Document Path:          /
Document Length:        11 bytes
Concurrency Level:      10
Time taken for tests:   72.544 seconds
Complete requests:      10000
Failed requests:        0
Keep-Alive requests:    10000
Total transferred:      9190000 bytes
HTML transferred:       110000 bytes
Requests per second:    137.85 [#/sec] (mean)
Time per request:       72.544 [ms] (mean)
Time per request:       7.254 [ms] (mean, across all concurrent requests)
Transfer rate:          123.71 [Kbytes/sec] received
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     4   72  49.2     64     393
Waiting:        4   72  49.2     64     393
Total:          4   72  49.2     64     393
Percentage of the requests served within a certain time (ms)
  50%     64
  66%     90
  75%    106
  80%    115
  90%    139
  95%    161
  98%    189
  99%    211
 100%    393 (longest request)

Benchmark: Spiral + RR (hello world): https://github.com/spiral/app

Server Software:        
Server Hostname:        127.0.0.1
Server Port:            8080

Document Path:          /
Document Length:        11 bytes

Concurrency Level:      10
Time taken for tests:   0.594 seconds
Complete requests:      10000
Failed requests:        0
Keep-Alive requests:    10000
Total transferred:      2600038 bytes
HTML transferred:       110000 bytes
Requests per second:    16839.38 [#/sec] (mean)
Time per request:       0.594 [ms] (mean)
Time per request:       0.059 [ms] (mean, across all concurrent requests)
Transfer rate:          4275.69 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       1
Processing:     0    1   0.7      0      11
Waiting:        0    1   0.7      0      11
Total:          0    1   0.7      0      11
WARNING: The median and mean for the processing time are not within a normal deviation
        These results are probably not that reliable.
WARNING: The median and mean for the waiting time are not within a normal deviation
        These results are probably not that reliable.
WARNING: The median and mean for the total time are not within a normal deviation
        These results are probably not that reliable.

Percentage of the requests served within a certain time (ms)
  50%      0
  66%      1
  75%      1
  80%      1
  90%      1
  95%      1
  98%      3
  99%      4
 100%     11 (longest request)

I'm wondering how reverse-proxy with nginx would affect the result.