Skip to content

Benchmark test of dubbo

u0x01 edited this page May 29, 2019 · 1 revision

Macbook Pro 15 inch 2018

Environment

  • OS: Darwin 18.2.0 Darwin Kernel Version 18.2.0
  • GOLANG: go1.12.4 darwin/amd64
  • RAM: 32G
  • CPU: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  • CPU cores: 6 * 2
  • server、client running on same host

Version

v1.0.0

Benchmark test result

  • request pkg size: 600
  • response pkg size: 574
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 0 7 0 6 7494
10 1000 1000 0 0 9 0 8 14128
10 1w 1w 0 0 6 0 4 17228
10 10w 10w 0 0 25 0 6 18999
10 100w 100w 0 0 72 0 2 18476
100 1000 1000 9 6 49 0 48 8752
100 1w 1w 4 4 50 0 49 19862
100 10w 10w 4 4 49 0 35 22777
100 100w 100w 4 4 207 0 26 21142
  • request pkg size: 1024
  • response pkg size: 996
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 0 4 0 4 8153
10 1000 1000 0 0 7 0 7 13005
10 1w 1w 0 0 3 0 3 16064
10 10w 10w 0 0 11 0 2 16256
10 100w 100w 0 0 770 0 2 15798
100 1000 1000 24 23 67 0 66 3737
100 1w 1w 5 4 51 0 50 17759
100 10w 10w 4 4 58 0 34 21315
100 100w 100w 5 5 418 0 26 18594
  • request pkg size: 4096
  • response pkg size: 4040
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 1 7 0 7 5150
10 1000 1000 1 1 9 0 8 8276
10 1w 1w 1 0 0 0 5 9730
10 10w 10w 1 0 39 0 3 9528
10 100w 100w 1 1 75 0 3 8772
100 1000 1000 12 8 50 1 50 6743
100 1w 1w 8 7 57 0 47 11657
100 10w 10w 8 7 115 0 94 11648
100 100w 100w 9 8 128 0 47 10160

General Server

Environment

  • OS: CentOS Linux release 7.4.1708 (Core)
  • GOLANG: 1.12.5 linux/amd64
  • RAM: 24G
  • CPU: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
  • cpu cores: 4 * 8
  • zk、server、client running on same host

Version

commit c73bad2eba5f98198148a70d75681ad88ca0775f

Benchmark test result

  • request pkg size: 600
  • response pkg size: 574
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 0 4 0 4 8166
10 1000 1000 0 0 6 0 5 11466
10 1w 1w 0 0 5 0 3 12846
10 10w 10w 0 0 23 0 6 12915
10 100w 100w 0 0 178 0 11 12753
100 1000 1000 9 6 48 0 43 8669
100 1w 1w 6 6 49 0 37 13918
100 10w 10w 7 6 133 0 70 13723
100 100w 100w 6 6 328 0 59 14478
  • request pkg size: 1024
  • response pkg size: 996
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 0 5 0 5 8453
10 1000 1000 0 0 5 0 4 10533
10 1w 1w 0 0 6 0 3 11533
10 10w 10w 0 0 29 0 10 11441
10 100w 100w 0 0 84 0 11 11296
100 1000 1000 10 8 40 0 39 8128
100 1w 1w 7 7 47 0 39 12578
100 10w 10w 8 7 394 0 254 11280
100 100w 100w 7 7 191 0 61 12680
  • request pkg size: 4096
  • response pkg size: 4040
concurrency total succ mean/ms median max/ms min/ms p99/ms tps
10 100 100 1 1 7 0 6 4767
10 1000 1000 1 1 5 0 5 5727
10 1w 1w 1 1 7 0 5 6071
10 10w 10w 1 1 19 0 10 5807
10 100w 100w 1 1 62 0 16 5904
100 1000 1000 15 13 50 0 50 5551
100 1w 1w 13 12 49 0 40 7386
100 10w 10w 14 13 192 0 147 6813
100 100w 100w 14 12 158 0 98 7100

log level

  • consumer: warn

  • provider: warn

dubbo config

  • client
    reconnect_interval: 0
    connection_number: 2
    heartbeat_period: "5s"
    session_timeout: "20s"
    fail_fast_timeout: "5s"
    pool_size: 64
    pool_ttl: 600
    getty_session_param:
      compress_encoding: false
      tcp_no_delay: true
      tcp_keep_alive: true
      keep_alive_period: "120s"
      tcp_r_buf_size: 262144
      tcp_w_buf_size: 65536
      pkg_rq_size: 1024
      pkg_wq_size: 512
      tcp_read_timeout: "1s"
      tcp_write_timeout: "5s"
      wait_timeout: "1s"
      max_msg_len: 10240
      session_name: "client"
  • server
    session_number: 700
    fail_fast_timeout: "5s"
    session_timeout: "20s"
    getty_session_param:
      compress_encoding: false
      tcp_no_delay: true
      tcp_keep_alive: true
      keep_alive_period: "120s"
      tcp_r_buf_size: 262144
      tcp_w_buf_size: 65536
      pkg_rq_size: 1024
      pkg_wq_size: 512
      tcp_read_timeout: "1s"
      tcp_write_timeout: "5s"
      wait_timeout: "1s"
      max_msg_len: 10240
      session_name: "server"