タグ

tuningとtipsに関するtlyncのブックマーク (2)

  • SQLの実行時間をミリ秒単位で計測する方法

    開発中にSQLのチューニングを行っていると、処理時間の改善結果をミリ秒単位で計測したい場合があると思います。しかし、Management Studio でSQLを実行した際に画面右下に表示される実行時間は秒単位であるため、ミリ秒単位の計測には向いていません。そこで、簡単にSQLの実行時間を計測できるサンプルを紹介します。 DECLARE @StartTime datetime -- 処理開始時刻保存用変数 SET @StartTime = GETDATE() -- 処理開始時刻設定 /* ↓↓↓ 以下に処理時間を計測したいSQL文を書く(下記は500,000回ループを回すサンプル) */ DECLARE @Counter integer SET @Counter = 0 WHILE (@Counter < 500000) BEGIN SET @Counter = @Counter + 1

    tlync
    tlync 2009/06/06
    Management Studio では処理時間が秒単位しか表示されない。SQL に処理時間を計測する SQL を含めてミリ単位で計測する Tips。
  • jQuery Performance Rules

    Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance – CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can have adverse affects if you’re not careful and follow some simple practice

    jQuery Performance Rules
    tlync
    tlync 2009/05/29
    これらを気をつけないと IE では特に遅くなる。jQuery 使う時にはまずはじめに見るべき。
  • 1