- 2008 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2007 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2006 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2005 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2004 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2003 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2002 : 01 02 03 04 05 06 07 08 09 10 11 12
2006-09-07
benchmark.js - JavaScriptのベンチマークツール
- Summary
JavaScriptのベンチマークツール.
連想配列の関数を渡せば利用可能.
benchmark()しか汚染しない.
FireBugのコンソールに表示することも可能.
- 使用上の注意
1. 計測はグローバル領域で行なうこと.
2. 軽すぎる関数は正確な値が出ないことがある.
- Usage
- Usage (FireBugを利用)
benchmark.at('firebug')({
'test1': function() {
// do something
},
'test2': function() {
// do something
},
'test3': function() {
// do something
}
});
- Sample (http://sample.ecmascript.jp/benchmark.html)
- Reference
IT戦記 - ベンチマークツール公開
http://d.hatena.ne.jp/amachang/20060906/1157571938
Benchmark Demo
http://sample.ecmascript.jp/benchmark.html
ソース
http://sample.ecmascript.jp/benchmark.js
JavaScriptのベンチマークツール.
連想配列の関数を渡せば利用可能.
benchmark()しか汚染しない.
FireBugのコンソールに表示することも可能.
- 使用上の注意
1. 計測はグローバル領域で行なうこと.
2. 軽すぎる関数は正確な値が出ないことがある.
- Usage
benchmark({ 'test1': function() { // do something }, 'test2': function() { // do something }, 'test3': function() { // do something } });
- Usage (FireBugを利用)
benchmark.at('firebug')({
'test1': function() {
// do something
},
'test2': function() {
// do something
},
'test3': function() {
// do something
}
});
- Sample (http://sample.ecmascript.jp/benchmark.html)
benchmark({ 'getElementById': function() { document.getElementById('target'); }, 'getElementsByTagName': function() { document.getElementsByTagName('target'); }, 'Prototype\'s $ function': function() { $('target'); } });
- Reference
IT戦記 - ベンチマークツール公開
http://d.hatena.ne.jp/amachang/20060906/1157571938
Benchmark Demo
http://sample.ecmascript.jp/benchmark.html
ソース
http://sample.ecmascript.jp/benchmark.js
カテゴリ: [JavaScript]
[ 固定リンク ]
- 2008 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2007 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2006 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2005 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2004 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2003 : 01 02 03 04 05 06 07 08 09 10 11 12
- 2002 : 01 02 03 04 05 06 07 08 09 10 11 12
2006-09 /