2009年3月20日星期五

IE8 正式版上JS测试的结果

IE8正式版昨天出来了。第一时间装上,打开这两个网页来测试一下速度。

(webkit sunspider测试不是完全第三方的,而且对网速、机器的后台程序运行情况非常敏感,因此不用。还是用我惯用的celtic kane的测试程序)

http://celtickane.com/webdesign/jsspeed.php

比较下:

IE8

Test Description Duration (ms)
Try/Catch with errors 47
Layer movement 219
Random number engine 31
Math engine 63
DOM speed 171
Array functions 16
String functions 16
Ajax declaration 1422
Total Duration 1985ms


Seamonkey 2.0b2 20090210 (tracemonkey 打开)

Test Description Duration (ms)
Try/Catch with errors 32
Layer movement 66
Random number engine 13
Math engine 44
DOM speed 222
Array functions 8
String functions 7
Ajax declaration 36
Total Duration 428ms

Safari 4.0b2

Test Description Duration (ms)

Try/Catch with errors 14
Layer movement 12
Random number engine 23
Math engine 57
DOM speed 13
Array functions 9
String functions 15
Ajax declaration 7
Total Duration 150 ms

Opera 10.0 a1139

Test Description Duration (ms)

Try/Catch with errors 16
Layer movement 15
Random number engine 47
Math engine 47
DOM speed 31
Array functions 47
String functions 47
Ajax declaration 16
Total Duration 266 ms

http://celtickane.com/webdesign/jsspeedarchive.php

比较:

IE8

Test Type Runtime (ms)
Array object 63
Date object 31
Error handling 78
Math object 63
RegEx object 219
String object 46
DOM 110
Ajax declarations 250
Total Duration 860

Seamonkey 2.0b2 20090210 (tracemonkey 打开)

Test Type Runtime (ms)
Array object 27
Date object 16
Error handling 7
Math object 12
RegEx object 129
String object 32
DOM 131
Ajax declarations 234
Total Duration 588

Safari 4.0b2

Test Type Runtime (ms)
Array object 17
Date object 14
Error handling 33
Math object 33
RegEx object 50
String object 13
DOM 25
Ajax declarations 36
Total Duration 221

Opera 10.0 a1139

Test Type Runtime (ms)
Array object 141
Date object 15
Error handling 32
Math object 47
RegEx object 78
String object 62
DOM 31
Ajax declarations 47
Total Duration 453

可以看出,Safari新版的高JS性能绝不是吹的。而IE,虽然已经大大更新,还是和06年一样,垫底。

这是我07年在同一台Thinkpad,同一个XP SP2系统上用第一版的http://celtickane.com/webdesign/jsspeed.php测试的数据。

http://yksoft1.spaces.live.com/blog/cns!66B9967EC9D22DD4!277.entry

可以看出IE8运行这个老的测试和IE7相比只提升了100多毫秒,而最快的safari、opera更快了,而Mozilla的速度在有了tracemonkey后,快了差不多一倍。

没有评论:

发表评论