The goal of this test is to directly compare performance of different RIA frameworks / approaches in different browsers. The test, which implements simple 2D animation demo, was initially created in DHTML, then ported to Silverlight (WPF/e), Flex and WPF (XBAP). The code used in DHTML, Silverlight (WPF/e) and Flex is essentially the same while for XBAP demo it was ported to C#.
The applicability of results is limited of course to the performance of animation, however, this is correlated to many practical patterns of modern RIA applications such as drag-and-drop and layout transitions. Additionally it allows to quantatively compare performance of different versions of browsers.
--
这里的
测试是一套基于动量碰撞的动画,评比各家平台的性能。其中源代码是开放的,如果怀疑是代码写的不好,完全可以自己去修改它。
我的测试结果:
[以上数据为在我自己的笔记本上跑的结果,非官方数据,或许会有出入,配置:XP SP2, Cure Duo T7250, 2G RAM]
所 有测试使用了默认的16 Ball,全部浏览器均只开一个标签页。从测试结果显示,Silverlight 2在各家平台下表现突出,性能遥遥领先,但是...微软的产品一般要3.0+才可以使用,先等明年Silverlight 3的发布吧,据说有一些了惊人的特性(3D,etc)。Flex(Flash Player10)在Chrome和Firefox下性能优异,但低于Silverlight 2, IE下表现尤其差强人意。Chrome下Javascript的性能甚至超越了Flash Player。为什么版本号已经到10.0的Flash Player性能拼不过初出茅庐的Silverlight?
性能仅仅是一个RIA的一个方面,RIA应该是有一系列产品线组成的,Silverlight拥有强悍的VS IDE,但缺乏对应的设计产品——Expression的操作感很不咋的。关于设计,仍然是Adobe的天下。
安装量方面,Adobe Flash一家独大,占据了95%以上的市场。但是Silverlight来势汹汹,号称全球1/4的电脑装了Silverlight,在中国拜强悍的QQ所赐,安装量已经过了80%。
很抱歉前面的文章中我道听途说,讲Silverlight2的性能在Flash Player10倍以上。但是从我亲自跑的测试来看,Silverlight2的性能的确要强于Flash Player10。在接下来我还会做一些了测试,以及试试看
bubblemark的算法是否有问题。
上一篇:
基于浏览器的 RIA 如何防止用户误点关闭或后退按钮 下一篇:
Flash 平台 RIA 开发 AS 参考手册更新