1 Star 0 Fork 0

shadowedge/spring-cloud-sleuth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Spring Cloud Sleuth Benchmarks

This module can run benchmarks using the following tools

  • JMH

  • JMeter

How to run it?

In the root folder inside the scripts folder there are the following benchmark scripts:

  • runJmhBenchmark.sh

  • runJmeterBenchmarks.sh

Just execute them from the root folder like this:

./scripts/runJmeterBenchmarks.sh
./scripts/runJmhBenchmarks.sh

How do they work?

For JMH we’re building a shaded JAR file that is next executed.

For JMeter we’re running two applications, one with Sleuth, one without with Spring Boot Maven Plugin. Next a Maven JMeter plugin is executed that loads the *.jmx files, starts JMeter and prints out the results. At the end Spring Boot Maven Plugin stops the applications.

What are we testing?

For now we’re testing the performance impact of the following:

  • our custom Trace HTTP filter

  • instrumentation of controllers - @Callable returning and the sync one

  • instrumentation of RestTemplate

  • @Async annotated methods

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/shadowedge/spring-cloud-sleuth.git
git@gitee.com:shadowedge/spring-cloud-sleuth.git
shadowedge
spring-cloud-sleuth
spring-cloud-sleuth
master

搜索帮助