How to test the JIT feature

42 篇文章 0 订阅
5 篇文章 0 订阅

After we finsih develop the JIT feature, how can we assure no crash will happen?

Do it follow below method.

Regression Test

Performance Test

Smoke Test 


1. regression test[M]:

To run mozilla regression test use the following command: WebKit/WebKitTools/Scripts/run-javascriptcore-tests


2.we cann't avoid all the crash issue, but we try to avoid it[O].

i. run the performance test suit.(it will indeed catch the "obvious" crashes)

	performance benchmark:
		SunSpider:WebKit/WebKitTools/Scripts/run-sunspider

		Google v8:WebKit/WebKitTools/Scripts/run-sunspider --v8
			
		Sputnik:http://test262.ecmascript.org/default.html

ii. run the layout test(the Layout tests also can catch crash )

iii. run the top 100 websites.(insure your browser call access most the popular web site without crash)


This good guide for proting the webkit:http://trac.webkit.org/wiki/SuccessfulPortHowTo

this code is for test the web page loader time:http://gitorious.org/methanol?page=1


EWS:is a designed to help catch build failures/test failures before patches are committed into WebKit.

web-page-replay:Record and play back web pages with simulated network conditions.

Adding archive.org-based page loading time performance tests: archive.org


In Chromium, we have --record-mode and --playback-mode flags for this 
use case. They put the cache, cookie jar, and some other components 
into a special mode where everything is aggressively captured and 
replayed without going to the net. In the case of Firefox, I believe 
someone at one time implemented a Firefox extension that rewrote pages 
to capture resources and use local references. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值