Spring 2.5 Perfomance Improvements 200% 直逼 Guice
併發效能提升的原因之一是使用了 ConcurrentHashMap,原來的 Collections.synchronized(new HashMap()) 存在同步鎖的效能瓶頸;
如果你是用JDK 5.0或以上的版本,就可以直接得到這個效能的提升的好處了。
或者下載 Emory concurrent utilities backport 加到 CLASSPATH 中
http://dcl.mathcs.emory.edu/util/backport-util-concurrent/
當然還要努力,越快越好啦。。。
引用
The upcoming Spring Framework version 2.5 will bring a 200% improvement for concurrent access over Spring 2.0.*. I used Crazy Bob's Semi Useless Benchmark ™ as a starting point. I fiddled with the code slightly to change the default behavior. from "prototype" to "singleton", and I saw that spring 2.5 was faster than Guice for singletons.
Here are some benchmarks (there is variability based on the runs)
* Spring 2.0 vs. guice 1.0:
o Prototype: Single thread: Spring is 50-150X slower. Concurrent: Spring is 50-150X slower.
o Singleton: Single thread: Spring 3X slower - 2X faster. Concurrent: Spring is 5-10X slower
* Spring 2.0.6 vs. guice 1.0:
o Prototype: Single thread: Spring is ~10X slower. Concurrent: Spring is 5X slower.
o Singleton: Single thread: Spring 2X slower - 2X faster. Concurrent: Spring:Guice ~2:3
* Spring 2.14m vs. guice 1.0:
o Prototype: Single thread: Spring is 5-7X slower. Concurrent: Spring is 3-4X slower.
o Singleton: Single thread: neck and neck. Concurrent: Spring is 1-1.5X faster
* guice 1.0:
o Prototype: Single thread vs. Concurrent: Concurrent might be a bit slower than single threaded
o Singleton: Single thread vs. Concurrent: Concurrent is quite a bit faster than single threaded
詳細請見這裡
http://www.jroller.com/Solomon/entry/spring_2_5_perfomance_improvements
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13270562/viewspace-217888/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How does Guice compare to Spring ?GUISpring
- Guice:Java IOC框架 挑戰SpringGUIJava框架Spring
- Oracle SQL Perfomance TuningOracleSQL
- Guice 示例GUI
- Guice指南-用Guice實現依賴注入GUI依賴注入
- Spring備忘四(涵蓋Spring2.5)Spring
- Performance and Memory Improvements in ART(Android O)ORMAndroid
- 再借斧子的例子說一說spring與guice的區別SpringGUI
- Elasticsearch 中的 GuiceElasticsearchGUI
- Guice學習心得GUI
- Guice與DWR整合GUI
- 初次認識GuiceGUI
- PostgreSQL DBA(189) - PG 14 Monitoring ImprovementsSQL
- Guice 依賴繫結GUI
- Guice指南-與 JNDI 整合GUI
- Google Guice的Binder介面GoGUI
- 例項認識GuiceGUI
- spring2.5 + hibernate 3 框架中用c3p0連線sql 2000出現問題。Spring框架SQL
- 祝賀Guice拿了Jolt AwardGUI
- Guice指南-手工依賴注入GUI依賴注入
- Guice指南-入門認識GUI
- 為什麼選擇Guice框架GUI框架
- 轉享: 在Scala中使用GuiceGUI
- Guice,叫我怎能不愛你?GUI
- Guice指南-簡單工廠模式GUI模式
- Spring Boot 2.5.x能支援Java 17了 - codecentricSpring BootJava
- Spring Boot 2.7.0釋出,2.5停止維護,節奏太快了吧Spring Boot
- 在Spring2.5中定製自己的屬性編輯器Spring
- spring2.5的第一個簡單應用的學習Spring
- 輕量級DI框架Guice使用詳解框架GUI
- 對 Guice Interceptor 的一點 自己 的看法GUI
- dubbo2.5-spring4-mybastis3.2-springmvc4-mongodb3.4-redis3.2整合(五)Spring中spring-data-redis的使用ASTS3SpringMVCMongoDBRedis
- 2月全球Web伺服器:Microsoft增至32.8%直逼ApacheWeb伺服器ROSApache
- 比特幣捲土重來 單價直逼4000元比特幣
- Spring Boot 3.0.0 M3、2.7.0釋出,2.5.x將停止維護Spring Boot
- KingCopy 2.5 BetaGC
- Guice真的無法享受企業級元件嗎GUI元件
- Google Guice 與 Noear Solon 的簡單對照GoGUI