Framework Speed Comparison

ベンチマーク

http://blog.creonfx.com/javascript/mootools-vs-jquery-vs-prototype-vs-yui-vs-dojo-comparison-revised
に掲載されているベンチマークテスト内容をサマる。

  • テスト方法
    • Slickspeed was run three times per browser with emptied cache and restart between each iteration.
    • Slickspeedはキャッシュされた状態で1ブラウザあたり3回実行し、繰り返す際には再起動する
    • Nothing else was running during the tests.
    • テスト中は他には何も起動させない
自分でもトライ(IE7

http://mootools.net/slickspeed/

  • やはり、jQueryが一番速い(377ms)
  • YUI(1126ms)、Prototype(2642ms)はjQueryに比べて遅め。
まとめ

今回はセレクタの速度だけの比較だが、jQueryにはいろいろプラグインもあるので
よほどの理由がなければ、現時点でのファーストチョイスだろう。