while(1) work();
반응형

아주아주 간단한 테스트를 통해 속도 비교한 결과입니다.

(단순 GET요청 하여, 184Byte짜리 응답을 받음)

그냥 호기심에 한 것이므로, 정밀하게 실험 환경 구성하지는 않음. (참고용으로만 사용하세요.)

Java : 24
SpringBoot: 3.4.4

대충 결과를 요약하면..

속도는 Jetty > Undertow > Tomcat 이나, 하위1%의 경우 Tomcat > Undertow >>>>>>>>>>>>> Jetty이다.

(다시 말하지만 실험환경 대충 구성한 간이 실험입니다)

Tomcat

root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.81ms    5.79ms 178.95ms   98.19%
    Req/Sec    21.83k     4.42k   35.05k    86.25%
  Latency Distribution
     50%    1.98ms
     75%    2.86ms
     90%    4.12ms
     99%   15.42ms
  2607306 requests in 30.02s, 455.50MB read
Requests/sec:  86845.68
Transfer/sec:     15.17MB

root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.13ms    1.18ms  22.73ms   80.72%
    Req/Sec    24.15k     2.78k   34.72k    68.75%
  Latency Distribution
     50%    1.78ms
     75%    2.57ms
     90%    3.72ms
     99%    6.39ms
  2883655 requests in 30.01s, 503.78MB read
Requests/sec:  96100.71
Transfer/sec:     16.79MB

root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.24ms    1.18ms  18.44ms   77.68%
    Req/Sec    22.79k     2.55k   33.86k    73.25%
  Latency Distribution
     50%    1.91ms
     75%    2.75ms
     90%    3.86ms
     99%    6.36ms
  2721637 requests in 30.01s, 475.48MB read
Requests/sec:  90682.52
Transfer/sec:     15.84M

Undertow

Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.95ms    3.44ms 154.06ms   95.53%
    Req/Sec    32.77k     6.99k   40.38k    90.50%
  Latency Distribution
     50%    1.30ms
     75%    2.14ms
     90%    3.54ms
     99%   13.08ms
  3914125 requests in 30.02s, 780.16MB read
Requests/sec: 130396.75
Transfer/sec:     25.99MB
root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.60ms    1.62ms  65.23ms   90.73%
    Req/Sec    34.62k     2.08k   39.63k    75.00%
  Latency Distribution
     50%    1.25ms
     75%    2.01ms
     90%    3.12ms
     99%    7.29ms
  4134648 requests in 30.01s, 824.11MB read
Requests/sec: 137759.44
Transfer/sec:     27.46MB

Jetty

root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.37ms   15.71ms   1.11s    98.82%
    Req/Sec    38.53k     9.64k   51.75k    89.17%
  Latency Distribution
     50%    1.05ms
     75%    1.78ms
     90%    3.17ms
     99%   22.40ms
  4603873 requests in 30.04s, 812.26MB read
Requests/sec: 153280.57
Transfer/sec:     27.04MB
root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     8.02ms   67.60ms   1.24s    98.77%
    Req/Sec    41.98k     4.01k   54.83k    80.33%
  Latency Distribution
     50%    0.97ms
     75%    1.60ms
     90%    2.64ms
     99%  234.01ms
  5013728 requests in 30.02s, 0.86GB read
Requests/sec: 166991.19
Transfer/sec:     29.46MB
root@34672ff62bed:/# wrk -t4 -c200 -d30s http://172.17.0.1:7000 --latency
Running 30s test @ http://172.17.0.1:7000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.27ms    1.17ms  25.48ms   89.99%
    Req/Sec    42.83k     2.64k   52.47k    68.75%
  Latency Distribution
     50%    0.96ms
     75%    1.57ms
     90%    2.44ms
     99%    6.04ms
  5116113 requests in 30.03s, 0.88GB read
Requests/sec: 170386.68
Transfer/sec:     30.06MB
반응형
profile

while(1) work();

@유호건

❤️댓글은 언제나 힘이 됩니다❤️ 궁금한 점이나 잘못된 내용이 있다면 댓글로 남겨주세요.

검색 태그