基于浏览器插件的 RIA 与基于 Java 脚本的 RIA 的性能

发布于 2024-08-26 18:29:16 字数 160 浏览 7 评论 0原文

对于我的数据密集型 Web 应用程序(繁重的表单和复杂的报告),从性能的角度来看,哪个更好......基于浏览器插件的 RIA(例如 SilverLight)或基于 Java 脚本的 RIA(例如 ExtJS)?

此时,我们可以避免讨论插件可用性等问题。我唯一关注的是性能。推理将受到赞赏。

For my data intensive web application (heavy forms & complex reports), from performance standpoint, which is better ... a browser plug-in based RIA (say SilverLight) or Java Script based RIA (say ExtJS)?

At this moment, we can avoid the discussion of plug-in availability, etc. My only focus is performance. Reasoning will be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

放肆 2024-09-02 18:29:16

从计算角度来看,Silverlight 将胜过 Javascript,这是毫无争议的,尤其是 Silverlight 4(计算速度是 Javascript 的两倍)。但我不认为原始数字处理性能一定是最重要的,Chrome 的 Javascript 引擎比 IE8 快 10 倍,但 ExtJS 中的 Web 应用程序的响应速度并没有提高近 10 倍。对象模型的操作速度似乎更重要,而 HTML 在这里似乎处于劣势,因为它并不是真正为 ExtJS 中的网格等复杂控件构建的。

如果您查看 ExtJS 网格生成的 HTML 此处,从网格的最外层容器到单元格的内容,深度为 13 层。所有这些层都会欺骗 HTML 和 CSS 做正确的事情。

虽然我进行了一些猜测,但按理说 Silverlight 的对象树要扁平得多,因为它可以因为它是为完成它所做的事情而构建的。再加上 Silverlight 的硬件加速,它肯定会在性能方面胜出,但不管怎样,我也认为在使用像 ExtJS 这样的框架时,性能不会很快成为瓶颈。通常情况下它仍然足够快。

Computationally, Silverlight will win out compared to Javascript, no contest, especially with Silverlight 4 (twice as fast computationally). But I don't think raw number crunching performance is necessarily the most important thing, Chrome's Javascript engine is 10x faster than IE8's, but a web application in ExtJS isn't nearly 10x more responsive. How fast the object model is manipulated seems more important and HTML seems to be at a disadvantage here, because it's not really built for complex controls like grids in ExtJS.

If you look at the HTML generated by an ExtJS grid here, it goes 13 layers deep from the outmost container of the grid to the content of a cell. All those layers to trick HTML and CSS into doing the right thing.

And while I'm speculating a bit, it stands to reason that Silverlight's object tree is a lot flatter, because well, it can be as it's built to do the things it does. Add to that Silverlight's hardware acceleration and it will definitely win out in the performance department, but regardless of that I also think that performance is not very quickly a bottleneck when using a framework like ExtJS. It's still fast enough, usually.

顾铮苏瑾 2024-09-02 18:29:16

很难说,因为这取决于很多变量。但您可能想查看 Bubblemark。在该特定基准测试中,Silverlight 3.0(启用位图缓存)表现良好,但很大程度上取决于您使用的浏览器。 Chrome 中的 Javascript 非常接近 Silverlight 的渲染性能。另请参阅 http://www.youtube.com/watch?v=gqjidzjkMM0

如果您使用 Silverlight 并且可以使用 Net.TCP 访问 WCF 后端,您也可以获得相当好的数据访问性能。我希望它比 JavaScript 更快一些(因为它没有 HTTP 开销),但我不知道它与通过 RTMP 访问 FMS 相比如何。

Hard to say because it depends on so many variables. But you might want to check out Bubblemark. On that particular benchmark, Silverlight 3.0 (with bitmap caching enabled) does well, but a lot depends on the browser you're using. Javascript with Chrome comes pretty close to Silverlight's rendering performance. See also http://www.youtube.com/watch?v=gqjidzjkMM0.

If you use Silverlight and can access your WCF backend using Net.TCP, you can get pretty good data access performance as well. I would expect it to be somewhat faster than JavaScript (since it doesn't have the HTTP overhead), but I don't know how it would compare to accessing FMS via RTMP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文