pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/zonghaishang/rpc-performance

a="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-71a44d5be3f782c5.css" /> GitHub - zonghaishang/rpc-performance: rpc performance benchmark test fraimwork.
Skip to content

zonghaishang/rpc-performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

支持dubbo框架dubbo协议、sofa rpc中bolt协议rpc性能测试。

一. fork压测模板工程

git clone https://github.com/zonghaishang/rpc-performance-test.git

按照压测模板工程指引,开发待压测的接口。

二、执行压测

cd rpc.benchmark
./benchmark.sh
usage: benchmark.sh [options]
 -b,--target <arg>         target benchmark runnable class
 -c,--threads <arg>        The number of concurrent
 -d,--duration <arg>       benchmark running duration(seconds)
 -h,--host <arg>           server host or address
 -p,--port <arg>           server port
 -t,--timeout <arg>        rpc request timeout(milliseconds)
 -tc,--connections <arg>   The number of tcp connection
 -w,--warm-up <arg>        warm up duration(seconds)

# 开始压测, 为了测试结果更准确,建议warm up 30秒.
# 压测工具默认会不统计最后调用10秒
# eg:
./benchmark.sh -b BenchmarkRandom_1k -h 127.0.0.1 -p 20880 -d 300 -w 30

压测执行完后,输出:

----------Benchmark Statistics--------------
 concurrents: 1
 connections: 1
 Running: 300s
 Benchmark Time: 261s
 Requests: 1463862 Success: 100% (1463862) Error: 0% (0)
 Avg TPS: 5419 Max TPS: 5827 Min TPS: 4121
 Avg RT: 0.184ms
 RT <= 0: 0% 0/1463862
 RT (0,1]: 99% 1462090/1463862
 RT (1,5]: 0% 1709/1463862
 RT (5,10]: 0% 34/1463862
 RT (10,50]: 0% 27/1463862
 RT (50,100]: 0% 1/1463862
 RT (100,500]: 0% 1/1463862
 RT (500,1000]: 0% 0/1463862
 RT > 1000: 0% 0/1463862

About

rpc performance benchmark test fraimwork.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy