在s1p鸣叫之后,今天早上我发现了一个有趣的消息。
Marcin Grzejszczak@mgrzejszczakWat?! @david_syer shows that you can run a @springframework app with Netty in less 0.2 seconds!!!😱😱😱15:24 PM - 27 Sep 2018
That’s why I enjoyed this repository today.
https://github.com/dsyer/spring-boot-startup-bench
建立失败
当我尝试用$ ./mvnw全新安装,它失败了。 阅读错误消息后,我修改了一行,构建成功。
结果奇怪
然后我用$(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版本。
然后…
尽管与比较SNAPSHOT版本速度的最初目标有所不同,但我很喜欢该存储库,并且我想了解该存储库的详细信息,尤其是鸣叫图片上的Flux基准测试。