JavaFX2的WebView的性能
来源:互联网 发布:会计电算化模拟软件 编辑:程序博客网 时间:2024/06/05 16:38
原文地址:http://stackoverflow.com/questions/10762979/performance-of-webview-in-javafx
I have used WebView quite a bit and usually the performance was perfectly fine and very usable.
- Html5 compliance is good.
- JavaScript performance varies but I found it about one third the speed of a recent version of Chrome according to Google's V8 benchmark (which Chrome is presumably tuned against).
- Rendering performance didn't seem to be much of an issue.
- Very intensive HTML Webapps such as some in the Chrome experiment library did not start up as quick as in some other browsers.
- WebGL is not supported so sites which fall back to software rendering of graphics from WebGL are much slower.
The biggest issue I had with WebView is that it is not quite as stable for cutting edge features and intensive use as other browsers, but not really any serious performance issues.
Here are a few benchmark stats (WebView version used was sourced from JavaFX 2.2 build 9):
Compliance
Running a html5 test to test html5 compliance (scores out of 500):
Chrome 19 402 + 13 bonus pointsFirefox 12 345 + 9 bonus pointsWebView 2.2b9 296 + 7 bonus points IE 9.0.6 138 + 5 bonus points
Running an acid3 test, webview scores 100/100 same as the other test browsers, but, like IE9, the final rendering has a slight imperfection.
Javascript
Sunspider Javascript benchmark (lower is better):
IE 9.0.6 146.7ms Chrome 19 151.5msFirefox 12 185.8msWebView 2.2b9 199.5ms
Google V8 Javascript benchmark (higher is better):
Chrome 19 15323Firefox 12 9557WebView 2.2b9 5145IE 9.0.6 3661
Mozilla Kraken Javascript benchmark (lower is better):
Chrome 19 2416.8msFirefox 12 2112.9msWebView 2.2b9 7988.9msIE 9.0.6 9403.0ms
Intensive Canvas
Spinning 3D buddha (higher is better):
Chrome 19 60fpsFirefox 12 43fpsIE 9.0.6 16fpsWebView 2.2b9 7fps
JQuery
JQuery test suite execution (lower is better):
Chrome 19 21826msWebView 2.2b9 22742msFirefox 12 23554msIE 9.0.6 28247ms
Based on the above benchmarks (run on my Windows 7 desktop), as long as WebView is stable and functional enough for you, then performance of WebView vs other browsers should not be an issue (as long as your app does not feature a lot of 3D spinning buddhas . . . :-).
Update
As uta's answer states, the JavaScript JIT compiler is switched on for the Win 32 bit build of JavaFX 2.2 and off for the Win 64 bit build of JavaFX 2.2. This means that WebView JavaScript benchmarks are significantly slower (typically 4 to 5 times slower) when running the 64 bit JavaFX version vs the 32 bit JavaFX version.
- JavaFX2的WebView的性能
- JavaFx2.0的介绍
- 使用JavaFX2.0的控件
- javaFX2 漂亮的礼花弹动画
- JavaFx2.2的HTML5兼容性
- 使用JavaFX2.0的控件
- 使用JavaFX2.0的控件
- 使用JavaFX2.0的控件
- 使用JavaFX2.0的控件
- 对最新版的JavaFX2.0的第一印象
- 使用JavaFX2.0编写的国际象棋游戏
- 使用JavaFX2.0的属性和绑定
- javaFX2.0中tableview的用法
- JavaFX2 - 文本可复制的Label
- 第三回 JavaFX2.0在mac系统的安装
- 第七回 JavaFX2.0和Swing的集成
- (翻译)第三回 JavaFX2.0在mac系统的安装
- (翻译)第七回 JavaFX2.0和Swing的集成
- 使用手势对UIImageView进行缩放、…
- uva494
- linux less命令
- 直接插入排序经典代码
- ffmpeg教程
- JavaFX2的WebView的性能
- 拖动
- 第一个C++上机报告
- adb 以root来运行
- 将JSP页面完美转换HTML页面
- 巨人之后的史蒂夫·鲍尔默和蒂姆·库克
- Instruments 使用教程
- BUG之javax.management.MalformedObjectNameException: Invalid character '=' in value part of property
- android 随手记 动画切换图片