Skip to content

Commit a89c5b3

Browse files
committed
Blog: New post.
1 parent 8f1c6c2 commit a89c5b3

File tree

1 file changed

+7
-70
lines changed

1 file changed

+7
-70
lines changed

mobile-web/html5-scorecard-the-good-the-bad-and-the-ugly-in-ios7.md

Lines changed: 7 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# [] iOS7 之 HTML5 综合评测:亮点、弱点和槽点
1+
# [] iOS 7 之 HTML5 综合评测:亮点、弱点和槽点
22

33
> * Original: [The HTML5 Scorecard: The Good, The Bad and the Ugly in iOS 7](http://www.sencha.com/blog/the-html5-scorecard-the-good-the-bad-and-the-ugly-in-ios7/)
44
> * Translated by: [cssmagic](https://github.com/cssmagic)
55
6-
![iOS7][58]
6+
![iOS7]
77

88
We've been testing the final release of iOS 7 over the last few days against our usual battery of HTML5 tests. Normally we're effusive about new releases of iOS to the point of fanboy-dom, but this time, and for the first time ever, we're disappointed in the execution of iOS software. Although there are some impressive performance gains in SVG and JavaScript, the sheer number of bugs and broken features, clearly mark this release as a beta. While nowhere as bad as the Android 3 browser -- our all time champ of broken web releases -- we recommend that organizations standardized on HTML5 development hold off upgrading until an iOS update fixes these issues.
99

@@ -75,7 +75,7 @@ In our own testing, we discovered a number of additional bugs in the iOS 7 runti
7575

7676
In addition to feature/bug testing, we also put iOS 7 through a battery of our standard performance tests on an iPhone 5 running iOS 6.1 vs. iOS 7. There are some remarkable increases in benchmark performance as well as some very notable misses. First up, we want to note that something odd has happened to the JavaScript timer on iOS 7. In previous versions, iOS had an exceptionally well implemented timer: 4ms with extremely good consistency (see below). But using [John Resig's standard timer test][62] resulted in this odd profile: a timer that jumps between 4ms and 12ms with clockwork regularity and much more noise than iOS 6.
7777

78-
除了特性测试和 bug 测试之外,我们对 iOS 7 进行了一系列我们自己的标准性能测试,分别观察 iPhone 5 上 iOS 7 和 iOS 6.1 的测试结果。在性能跑分方面,有一些值得注意的增长,同时也有一些引人注目的失误。首先,我们想指出,iOS 7 上的 JavaScript 定时器出现了一些奇怪的情况。在上一个版本中,iOS 的定时期实现得出人意料地好:4 ms 并且有着非常好的一致性(见下图)。但 iOS 7 在进行 [John Resig 的标准定时器测试][62] 时,结果十分奇怪:定时器的间隔在 4ms 和 12ms 之间来回有规律地摆动,与 iOS 6 相比要杂乱不少。
78+
除了特性测试和 bug 测试之外,我们对 iOS 7 进行了一系列我们自己的标准性能测试,分别观察 iPhone 5 上 iOS 7 和 iOS 6.1 的测试结果。在性能跑分方面,有一些值得注意的增长,同时也有一些引人注目的失误。首先,我们想指出,iOS 7 上的 JavaScript 定时器出现了一些奇怪的情况。在上一个版本中,iOS 的定时期实现得出人意料地好:4 ms 并且有着非常好的一致性(见下图)。但 iOS 7 在进行 [John Resig 的标准定时器测试][62] 时,结果十分奇怪:定时器的间隔在 4ms 和 12ms 之间有规律地来回摆动,与 iOS 6 相比要杂乱不少。
7979

8080
![iOS7 timer][63]
8181

@@ -97,7 +97,7 @@ In good news, raw JavaScript performance has increased substantially. SunSpider
9797

9898
好消息是,单纯的 JavaScript 性能有大幅度的提升。与 iOS 6 相比,iOS 7 的 SunSpider 1.0 的跑分提升了 15%,Octane 跑分提升了 70%。部分 Octane 测试显示出了惊人的速度增长:Navier-Stokes 性能涨幅几乎达到了 4 倍。要知道 Safari 在我的两年前的老 MacBook 笔记本上的得分是 5600 分,这么说来,在某种程度上,iOS 7 的性能已经相当于桌面平台的 50% 了!这有可能是某些 JIT 技巧的功劳,也有可能是 GPU 在 iOS 7 下以某种方式分担了 CPU 的运算工作?
9999

100-
![iOS7][65]
100+
![Octane Benchmark]
101101

102102
Figure 2: Octane Benchmark - iPhone 5 iOS 6 vs. iOS 7 (higher is better)
103103

@@ -107,7 +107,7 @@ But it's not all good news on the performance front. During the iOS 7 beta, we w
107107

108108
不过这还不是性能方面的所有好消息。在 iOS 7 的 beta 期间,我们就曾为 iOS 7 在 Dromaeo 测试上超低的 DOM 操作得分捏把汗,并期待苹果在最终正式版中扭转局面。在 DOM 遍历、存取属性和修改操作方面,性能已经回到了 iOS 6 的水准,这很好。但是 DOM 查询的速度仍然只有 iOS 6 的 50% 左右。这对很多需要大量查询 DOM 的 HTML5 应用来说,会是一个很大的顾虑,这也是苹果在下一次更新时需要重点考虑的问题。
109109

110-
![iOS7][66]
110+
![Dromaeo benchmark]
111111

112112
Figure 3: Dromaeo benchmark - iOS 6 vs iOS 7 (iOS 6 = 1.00 - higher is better)
113113

@@ -121,7 +121,7 @@ Test of Canvas performance show a minor improvement in iOS 7 -- about 10% in the
121121

122122
在 Canvas 性能方面,iOS 7 显示出了少量的进步——在 [Fishtank][67] 测试和 [Mindcat][68] 的性能评分中有 10% 左右的提升。但真正令人惊讶的是 SVG 性能。得益于全新的绘图算法,SVG 路径绘制速度提升了 **200 倍**,是的,你没有看错,两百倍。在 iOS 6 中,[一个 10,000 段的 SVG 路径需要花费 11 秒才能绘制完成][69];但在 iOS 7 中,只需要 53 毫秒。iOS 目前以 6 倍性能领先于 Surface RT——它是上一代的 SVG 绘图性能之王。
123123

124-
![iOS7][70]
124+
![SVG Path Drawing Benchmark]
125125

126126
Figure 4: SVG Path Drawing Benchmark (lower is better)
127127

@@ -139,7 +139,7 @@ And now the real killer. In the rush to get iOS 7 out the door, making sure SVG
139139

140140
## iOS 7 在 web 方面仍未成熟
141141

142-
![20130924-iOS7.png][72]
142+
![iOS7 Logo]
143143

144144
Given all these bugs and issues, combined with some genuine major advances, it's hard not to interpret this as a beta release that was rushed into production for the release of the iPhone 5S. In a way, it reminds us of the Android 3 release -- which was rushed into production for the Motorola Xoom tablet -- with severe bugs and performance deficiencies. We're eagerly awaiting the release of the first update for iOS 7 when we hope Apple delivers on its usual commitment to quality.
145145

@@ -159,78 +159,15 @@ Michael Mullany is Sencha's CEO. He has held various product and executive marke
159159

160160
Michael Mullany 是 Sencha 的 CEO。他曾在很多有影响力的硅谷创业公司(比如网景、Loudcloud、VMware)中担任过多个产品和营销总监职位。他获得了斯坦福大学的 MBA 学位,以及哈佛大学的经济学学士学位。
161161

162-
[1]: http://www.sencha.com/img/sencha-large.png
163-
[2]: http://www.sencha.com#content
164-
[3]: http://www.sencha.com/products/
165-
[4]: http://www.sencha.com/products/complete/
166-
[5]: http://www.sencha.com/products/touch-bundle/
167-
[6]: http://www.sencha.com/products/touch/
168-
[7]: http://www.sencha.com/products/extjs/
169-
[8]: http://www.sencha.com/products/gxt/
170-
[9]: http://www.sencha.com/products/architect/
171-
[10]: http://www.sencha.com/products/animator/
172162
[11]: http://www.sencha.com/products/space/
173-
[12]: http://www.sencha.com/support/
174-
[13]: http://www.sencha.com/support/services/
175-
[14]: http://www.sencha.com/support/faq/
176-
[15]: http://www.sencha.com/training/
177-
[16]: http://www.sencha.com/training/courses/
178-
[17]: http://www.sencha.com/company/
179-
[18]: http://www.sencha.com/company/team/
180-
[19]: http://www.sencha.com/company/careers/
181-
[20]: http://www.sencha.com/company/events/
182-
[21]: http://www.sencha.com/company/press/
183-
[22]: http://www.sencha.com/company/partners/
184-
[23]: http://www.sencha.com/company/contact/
185-
[24]: http://www.sencha.com/company/customers/
186-
[25]: http://www.sencha.com/blog/
187-
[26]: http://www.sencha.com/company/contact
188-
[27]: http://www.sencha.com/store/
189-
[28]: http://www.sencha.com/store/sencha-complete/
190-
[29]: http://www.sencha.com/store/sencha-touch-bundle/
191-
[30]: http://www.sencha.com/store/architect/
192-
[31]: http://www.sencha.com/store/extjs/
193-
[32]: http://www.sencha.com/store/touch/
194-
[33]: http://www.sencha.com/store/gxt/
195-
[34]: http://www.sencha.com/store/animator/
196-
[35]: http://www.sencha.com/store/ordering-information/
197-
[36]: http://www.sencha.com/store/licensing-faq/
198-
[37]: http://www.sencha.com/store/authorized-resellers/
199-
[38]: http://www.sencha.com/login
200-
[39]: http://www.sencha.com/forum/register.php
201-
[40]: http://www.sencha.com/forum/
202-
[41]: http://www.sencha.com/apps/
203-
[42]: http://developer.sencha.com/
204-
[43]: http://www.senchadevs.com/
205-
[44]: http://market.sencha.com/
206-
[45]: http://try.sencha.com/
207-
[46]: http://docs.sencha.com/
208-
[47]: http://docs.sencha.com/extjs/
209-
[48]: http://docs.sencha.com/extjs3/
210-
[49]: http://docs.sencha.com/gxt/3/
211-
[50]: http://docs.sencha.com/touch/
212-
[51]: http://docs.sencha.com/touch/1-1/
213-
[52]: http://docs.sencha.com/touch-charts/
214-
[53]: http://docs.sencha.com/architect/2/#!/guide
215-
[54]: http://docs.sencha.com/animator/#!/guide
216-
[55]: https://www.sencha.com/store/cart
217-
[56]: http://www.sencha.com
218-
[57]: http://twitter.com/share
219-
[58]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-hero.png
220163
[59]: http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review
221164
[60]: http://webreflection.blogspot.com
222165
[61]: http://druckit.wordpress.com/2013/09/24/about-sencha-touch-2-x-phonegapcordova-and-ios-7/
223166
[62]: http://ejohn.org/apps/timers/
224-
[63]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-1.png
225-
[64]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-5.png
226-
[65]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-2.png
227-
[66]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-3.png
228167
[67]: http://ie.microsoft.com/testdrive/performance/fishietank/
229168
[68]: http://dl.dropboxusercontent.com/u/1865210/mindcat/canvas_perf.html
230169
[69]: http://bl.ocks.org/stepheneb/1296930
231-
[70]: http://cdn.sencha.io/img/20130924-iOS7/iOS7-4.png
232170
[71]: http://themaninblue.com/experiment/AnimationBenchmark/svg/
233-
[72]: http://cdn.sencha.io/img/20130924-iOS7.png
234171

235172
***
236173

0 commit comments

Comments
 (0)