1. console.time() で関数の実行時間を測る Firebug で、JavaScript の関数の実行時間を知りたい。 例えば、HTML の pre 要素内で JavaScript ファイルを読み込むとする。 index.html <html> <head></head> <body> <pre><script src="test.js"></script></pre> </body> </html> JavaScript のファイルである test.js の中で、console.time(), console.timeEnd() 関数を使うと、関数が実行される時間を測ることができる。 Firebug and Logging によると、 The low-fi approach is to call console.time("timing foo") before the co