2007年7月4日星期三

发现一个 javascript速度测试的网站

http://celtickane.com/projects/jsspeed.php
我今天偶然digg出来的。。
哈哈,Mac被LOLI无情破坏,只能在我的PC(ThinkPad R60 94602EC+WinXP SP2)下随便比较了几个。
IE7:
Test Description Duration (ms)

Try/Catch with errors 31
Layer movement 469
Random number engine 63
Math engine 140
DOM speed 282
Array functions 31
String functions 31
Ajax declaration 1078
Total Duration 2125ms
Opera 9.2:
Test Description Duration (ms)

Try/Catch with errors 16
Layer movement 78
Random number engine 62
Math engine 78
DOM speed 32
Array functions 62
String functions 141
Ajax declaration 15
Total Duration 484 ms
Safari for Windows 3.0.2+WebKit-SVN-r23922:
Test Description Duration (ms)

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

K-Meleon 1.0.2:

Test Description Duration (ms)



Try/Catch with errors
125

Layer movement
188

Random number engine
156

Math engine
250

DOM speed
172

Array functions
140

String functions
32

Ajax declaration
140

Total Duration
1203
ms

Firefox 1.5.0.12(写这篇用的)
Test Description Duration (ms)

Try/Catch with errors
109
Layer movement
219
Random number engine
266
Math engine
265
DOM speed
172
Array functions
110
String functions
16
Ajax declaration
172
Total Duration
1329
ms

Firefox 2.0.0.3:
Test Description Duration (ms)

Try/Catch with errors
62
Layer movement
188
Random number engine
187
Math engine
250
DOM speed
156
Array functions
125
String functions
16
Ajax declaration
156
Total Duration
1140
ms


可以看出Safari最快,Opera次之,K-Meleon1.02和Firefox 2.0.0.3不分伯仲,Firefox 1.5.0.12再次,IE7最慢。。

没有评论:

发表评论