0
나는 one에 대한 내 프레임 워크로 작성된 간단한 helloworld 응용 프로그램을 벤치마킹하여 SpringBoot로 작성했습니다.abacache 벤치 마크에서의 전송률
구간 SpringBoot 버전에 대한 로그 : ActFramework에 대한
luog~$ ab -n 100000 -c 20 http://localhost:8080/hello?name=rythm
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software: Apache-Coyote/1.1
Server Hostname: localhost
Server Port: 8080
Document Path: /hello?name=rythm
Document Length: 155 bytes
Concurrency Level: 20
Time taken for tests: 6.733 seconds
Complete requests: 100000
Failed requests: 0
Total transferred:0000 bytes
HTML transferred: 15500000 bytes
Requests per second: 14851.38 [#/sec] (mean)
Time per request: 1.347 [ms] (mean)
Time per request: 0.067 [ms] (mean, across all concurrent requests)
Transfer rate: 4655.56 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 2
Processing: 0 1 0.7 1 15
Waiting: 0 1 0.7 1 15
Total: 0 1 0.7 1 15
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 2
80% 2
90% 2
95% 2
98% 3
99% 4
100% 15 (longest request)
그리고 AB 로그 : 우리가 초당 트랜잭션을 볼 수 있듯이
luog~$ ab -n 100000 -c 20 http://localhost:5460/?who=rythm
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software:
Server Hostname: localhost
Server Port: 5460
Document Path: /?who=rythm
Document Length: 111 bytes
Concurrency Level: 20
Time taken for tests: 6.796 seconds
Complete requests: 100000
Failed requests: 0
Total transferred: 18600000 bytes
HTML transferred: 11100000 bytes
Requests per second: 14714.64 [#/sec] (mean)
Time per request: 1.359 [ms] (mean)
Time per request: 0.068 [ms] (mean, across all concurrent requests)
Transfer rate: 2672.78 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 0 1 1.2 1 9
Waiting: 0 1 1.2 1 9
Total: 0 1 1.2 1 9
Percentage of the requests served within a certain time (ms)
50% 1
66% 2
75% 2
80% 3
90% 3
95% 3
98% 4
99% 4
100% 9 (longest request)
은 거의 동일합니다. 그러나 전송률은 매우 다릅니다. ActBy 버전은 2.7Kb/s 밖에 없지만 SpringBoot 버전은 4.5Kb/s 이상이었습니다. 응답 시간은 전송 속도가 너무 다르다 동안 거의 동일 왜
나는
궁금해?
전송 속도를 향상시키는 방법은 무엇입니까? 네트워크 계층으로 undertow를 사용하고 있습니다. 조정해야 할 사항이 있습니까? Here는 콘텐츠 및 HTTP 헤더 모두에서, 처리 된 요청의 수는 동일하지만, 상이한 반응은 물러 네트워크 레이어
처리 된 요청 수가 동일하지만 응답과 내용이 HTTP 헤더에서 모두 다릅니다. 따라서 트래픽의 차이도 있습니다. – apangin
예, 수치스럽지 않았습니다. 내가 당신에게 자격 증명을 줄 수 있도록 당신의 대답을 답안에 넣어 주시겠습니까? –