- jsPerf — JavaScript performance playground
- 超實用的 javascript 效能測試,但 test case 不好寫,還在學習要如何去寫。
- HTML5 test
- 測試各個 browser 對 HTML5 的支援度
- JavaScript Benchmark
- javascript 的跑分測試
- timestamp
- This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
//jQuery console.time("timerName"); function(); console.timeEnd("timerName"); This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters//javascript var startTime = new Date().getTime(); function(); var endTime = new Date().getTime(); var totalTime = endTime - startTime; console.log("TotalTime:" + totalTime + "ms");
要注意的是 timestramp 的方法中,結束的時間必須是要測試的 function 結束,上例只是範例,部分的情況不會是用上例的寫法
2013-05-04
web performance
最近在做一些關於 web 的效能測試,稍微紀錄一下所用的工具與方法,其實還有許多 test case 或 unit test 的工具與方法,但沒時間去逐一去試。
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言