<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog.html" frameborder="0" width="728" scrolling="no" height="90"></iframe>
并发性能提升的原因之一是使用了 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
分享到:
相关推荐
Tool for logging performance benchmark for hp servicedesk to file.
### Sybase数据库性能优化基础知识详解 #### 一、引言 Sybase数据库是业界领先的数据库管理系统之一,尤其在金融、电信等行业中应用广泛。随着业务量的增长和技术的发展,数据库性能问题逐渐凸显,如何有效地进行...
《Android 应用性能优化》是一本专注于提升 Android 应用程序性能的书籍,通过样例代码来指导开发者实现更高效、流畅的应用。在 Android 编程领域,性能优化是至关重要的,它不仅关乎用户体验,也直接影响到应用的...
W. F. Sharpe. "Mutual Fund Performance." Journal of Business. Vol. 39, No. 1, Part 2, pp. 119-138, 1966.
### AIX性能分析与调优指南 #### 绩效分析与调优概览 本章节首先概述了AIX操作系统下的性能分析与调优的基本概念、重要性及其在系统中的作用。 **性能**是衡量系统生产力的主要因素之一。它依赖于吞吐量和响应...
webgl-2d-perfomance webgl-2d-perfomance test
perfomance_test_nginx-cache_elasticsearch-cache 具有 nginx 缓存功能和 elasticsearch 缓存功能的 elasticsearch 实验。 调查及结果 请看 如何进行测试 1.准备测试环境 1.1 使用nginx(rproxy-cache)制作一个ec2...
《Java Performance - The Definitive Guide》是一本深入探讨Java性能优化的专业书籍,它为Java开发者提供了关于如何提升代码效率、降低系统资源消耗的关键指导。这本书涵盖了从基础的编程实践到复杂的工具使用,...
mrc snrgain perfomance
《Oracle Database 10g性能调整与优化》 在IT领域,数据库性能优化是一项至关重要的任务,特别是对于大型企业及高并发系统来说,高效的数据库性能是保障业务流畅运行的基础。Oracle Database 10g作为一款广泛应用的...
在Angular开发中,性能优化是确保用户获得流畅体验的关键因素。"angular-performance"主题涵盖了针对Angular应用程序进行性能提升的各种技术和策略。以下是一些核心知识点: 1. **懒加载模块**:Angular支持模块懒...
Linux性能工具是针对Linux系统性能调优和基准测试的专业工具集合。在描述中提到,这些工具对于评估和优化嵌入式Linux系统的性能具有重要作用。标签中的“linux arm”表明这些工具特别适用于基于ARM架构的Linux设备。...
ISR Perfomance ,ISR ROUTER
标题中的"The APR based Apache Tomcat Native library"是指Apache Portable Runtime(APR)库的一个组件,即Apache Tomcat Native库。这个库是专门为Apache Tomcat设计的,目的是为了提高其在处理网络I/O、系统调用...
High perfomance PPTP client and server
Estimating OptimalTracking Filter Performance for MannedManeuvering Targets.ROBERT A. SINGER.运动模型Singer模型提出论文。
比较性能栏 简单进度视图,您可以比较事物,例如足球比赛的统计数据 用法 <... android : layout_width = " match_parent " android : layout_height = " 50dp " android : layout_marginStart = " 8dp " ...
《基于MATLAB-Simulink模型的交流传动高性能控制》是由Haitham AbuRub、Atif Iqbal和Jaroslaw Guzinski三位作者合著的专业书籍,主要探讨了利用MATLAB/Simulink工具对交流驱动系统进行高效控制的技术与方法。...
在实现过程中,"perfomance_sys_wx"文件可能包含了微信小程序的源代码,包括页面定义、样式设计、网络请求(通过wx.request调用Flask后端API)等内容。而"perfomance_sys_api"文件则可能包含了Flask应用的源代码,...
* 教义2.5 发电机组威基字体真棒用法建立专案composer create-project cawakharkov/symfony-micro:dev-master 凉亭bower install 使用内置服务器运行。 bin/console server:run localhost小基准-> % siege -b -t30S ...