国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman下數(shù)據(jù)庫壓測和webman-admin下數(shù)據(jù)庫壓測差距很大

咸魚不咸

問題描述

在本地壓測,都是相同的數(shù)據(jù)庫查詢條件,在webman下和webman-admin下差距非常大,是哪里配置有問題嗎?

$product = UnionProduct::where('type',$type)->paginate($limit);

都是一樣的查詢條件,在webman下面2000+,而放在webman-admin插件下面,能達到2w+,是我哪里設置有問題嗎?
webman 下面

ab -n10000 -c200 -k http://127.0.0.1:8787/api/v1/product

Server Software:        workerman
Server Hostname:        127.0.0.1
Server Port:            8787

Document Path:          /api/v1/product
Document Length:        1744 bytes

Concurrency Level:      200
Time taken for tests:   3.789 seconds
Complete requests:      10000
Failed requests:        0
Keep-Alive requests:    10000
Total transferred:      18600000 bytes
HTML transferred:       17440000 bytes
Requests per second:    2639.10 [#/sec] (mean)
Time per request:       75.784 [ms] (mean)
Time per request:       0.379 [ms] (mean, across all concurrent requests)
Transfer rate:          4793.67 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       9
Processing:     0   74 335.3     40    3761
Waiting:        0   74 335.3     40    3761
Total:          0   74 335.3     40    3761

Percentage of the requests served within a certain time (ms)
  50%     40
  66%     45
  75%     48
  80%     50
  90%     53
  95%     60
  98%     64
  99%   1727
 100%   3761 (longest request)

webman-admin 下面

ab -n10000 -c200 -k http://127.0.0.1:8787/app/admin/product

Server Software:        workerman
Server Hostname:        127.0.0.1
Server Port:            8787

Document Path:          /app/admin/product
Document Length:        82 bytes

Concurrency Level:      200
Time taken for tests:   0.460 seconds
Complete requests:      10000
Failed requests:        0
Keep-Alive requests:    10000
Total transferred:      2920000 bytes
HTML transferred:       820000 bytes
Requests per second:    21732.37 [#/sec] (mean)
Time per request:       9.203 [ms] (mean)
Time per request:       0.046 [ms] (mean, across all concurrent requests)
Transfer rate:          6197.12 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       9
Processing:     0    9  25.5      7     440
Waiting:        0    9  25.5      7     440
Total:          0    9  25.5      7     440

Percentage of the requests served within a certain time (ms)
  50%      7
  66%      9
  75%     10
  80%     10
  90%     11
  95%     13
  98%     14
  99%     15
 100%    440 (longest request)

看起來傳輸?shù)淖止?jié)大了很多,但是沒明白怎么回事,跪求大神指點一下!

922 2 0
2個回答

walkor 打賞

webman-admin請求一般需要登錄,你的ab壓測是未登錄狀態(tài),返回大小是82 bytes,應該是沒請求到數(shù)據(jù)庫,跳轉(zhuǎn)到登錄了

W

學習了

  • 暫無評論
年代過于久遠,無法發(fā)表回答
??