【文件属性】:
文件名称:gwt-test-json-speed-jsni
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-20 00:03:16
Java
gwt-test-json-speed-jsni
JSON编码器的测试速度
选定的框架
[AutoBeans]( )
[RestyGWT]( )
[JSNI叠加层]( )
JSON树结构
单父节点,很少的属性,以及单个的,较大的子列表,每个子节点都有很少的属性。
初步结果
(在Mac mini上,以superdev模式运行(以毫秒为单位的持续时间,代表4000个元素)。
谷歌浏览器:
autobean持续时间= 217
休息时间= 85
jsni持续时间= 4
使用Firefox(39.0)的相同硬件:
autobean持续时间= 451
休息时间= 163
jsni持续时间= 3
非常早的结论
RestyGWT的速度明显比AutoBean快,但是被JSNI彻底摧毁了,这需要很多样板代码。
去做
在生产模式下进行测试
其他平台,尤其是手机平板电脑/手机
更复杂,更
【文件预览】:
gwt-test-json-speed-jsni-master
----gwt-test-json-speed-jsni.iml(1KB)
----README.md(1KB)
----src()
--------com()
----web()
--------MySampleApplication.html(1KB)
--------WEB-INF()
--------index.jsp(286B)
--------MySampleApplication.css(184B)
----.idea()
--------libraries()
--------vcs.xml(180B)
--------misc.xml(1KB)
--------modules.xml(288B)
--------artifacts()
--------.name(24B)
--------copyright()
--------compiler.xml(709B)