开始享受spring-boot-startup-bench

在s1p鸣叫之后,今天早上我发现了一个有趣的消息。

That’s why I enjoyed this repository today.
https://github.com/dsyer/spring-boot-startup-bench

建立失败

当我尝试用$ ./mvnw全新安装,它失败了。 阅读错误消息后,我修改了一行,构建成功。

Https://github.com/bufferings/spring-boot-startup-bench/commit/4218301f4139274abe489ddaeb09058039184da7

结果奇怪

然后我用$(cd基准/; java -jar target / benchmarks.jar)。 但是结果却很奇怪。

的petclinic最新(预计算)薄结果太慢了。

瘦?

I didn’t know what the Thin means. Then I reached to https://github.com/dsyer/spring-boot-thin-launcher and understood it’s an experimental library to make the jar file thin and download jars when it starts for the first time.

我阅读了基准测试模块的源代码,以了解其如何运行目标,并添加了--thin.debug = true查看调试输出。

java -Xmx128m -Djava.security.egd=file:/dev/./urandom \
  -XX:TieredStopAtLevel=1 \
  -jar petclinic-latest/target/petclinic-latest-1.4.2-thin.jar \
  --thin.debug=true \
  --server.port=0

快照?

我忘记了备忘,但是它显示了jar解析日志。 我注意到petclinic最新加载了一些SNAPSHOT版本库。

我想每次它都会检查Maven存储库的SNAPSHOT版本。 所以我修改了pom文件以使用RELEASE版本。

Https://github.com/bufferings/spring-boot-startup-bench/commit/17fb6be5511a928ebf26cc49d6044ce6ffdcd73d

然后…

尽管与比较SNAPSHOT版本速度的最初目标有所不同,但我很喜欢该存储库,并且我想了解该存储库的详细信息,尤其是鸣叫图片上的Flux基准测试。

from: https://dev.to//bufferings/started-enjoying-spring-boot-startup-bench-1ahj

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值