jax-rs-performance:比较每个请求和单例 JAX-RS 资源类的性能-源码

上传者: 42151036 | 上传时间: 2021-06-03 18:06:25 | 文件大小: 1.09MB | 文件类型: ZIP
JAX-RS 性能 比较每个请求和单例 JAX-RS 资源类的性能。 请参阅。 该项目包括 4 个资源类:2 个每个请求范围和 2 个单例。 两个只是返回一个查询参数。 在另外两个资源中,我们将通过@Context 注入 UriInfo。 上下文特定于特定请求。 因此,在请求范围的资源上,它可以在创建时注入。 对于单例资源,这需要通过创建代理对象来进行不同的处理。 建造 mvn clean install docker build -t jax-rs-performance . docker run -it --rm --name jax-rs-performance -p 8080:8080 -p 9990:9990 jax-rs-performance mvn -Pjmeter clean verify 可以在 pom.xml 的 jmeter-maven-plugin 设置中配

文件下载

资源详情

[{"title":"( 23 个子文件 1.09MB ) jax-rs-performance:比较每个请求和单例 JAX-RS 资源类的性能-源码","children":[{"title":"jax-rs-performance-master","children":[{"title":"pom.xml <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"Dockerfile <span style='color:#111;'> 603B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"jmeter","children":[{"title":"singleton-2.jmx <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"singleton-1.jmx <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"request-1.jmx <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"request-2.jmx <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"webapp","children":[{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 265B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"de","children":[{"title":"utkast","children":[{"title":"jaxrs","children":[{"title":"performance","children":[{"title":"RestApplication.java <span style='color:#111;'> 744B </span>","children":null,"spread":false},{"title":"RequestResource1.java <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"SingletonResource2.java <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"SingletonResource1.java <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"RequestResource2.java <span style='color:#111;'> 533B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"results","children":[{"title":"jmeter","children":[{"title":"request-1.log <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false},{"title":"singleton-1.log <span style='color:#111;'> 10.02KB </span>","children":null,"spread":false},{"title":"singleton-2.log <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false},{"title":"request-2.log <span style='color:#111;'> 10.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"visualvm","children":[{"title":"request-1.png <span style='color:#111;'> 339.67KB </span>","children":null,"spread":false},{"title":"singleton-1.png <span style='color:#111;'> 329.86KB </span>","children":null,"spread":false},{"title":"singleton-2.png <span style='color:#111;'> 351.89KB </span>","children":null,"spread":false},{"title":"request-2.png <span style='color:#111;'> 340.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明