マック版Chromium(Google Chrome for Mac)は、まだ公開されていませんが、ソースからコンパイルすることはできます。
(1) ターミナルを開きます。
(2) depot_toolsをインストール
-> http://sites.google.com/a/chromium.org/dev/developers/how-tos/install-gclient
$ svn co http://src.chromium.org/svn/trunk/depot_tools/mac depot_tools
$ export PATH=`pwd`/depot_tools:"$PATH"
(3) コードを入手
-> http://sites.google.com/a/chromium.org/dev/developers/how-tos/get-the-code
$ mkdir chromium
$ cd ~/chromium
$ gclient config http://src.chromium.org/svn/trunk/src
$ gclient sync
1.73GBほどあります。(4)のコンパイルで、ファイルが足りなくてエラーとなる場合は、
$ gclient sync --force
を実行して、強制で同期させます。
(4) コンパイルを実行
-> http://code.google.com/p/chromium/wiki/MacBuildInstructions
$ open ~/chromium/src/build/all.xcodeproj
TestShell.appだけコンパイルしたいときは、
$ open ~/chromium/src/webkit/tools/test_shell/mac/TestShell.xcodeproj
Xcodeが開くので、ビルドを実行します。
ビルドが終わると~/chromiumのサイズは、6.55GBにふくれあがりました。
(5) アプリケーションを実行
Debugでコンパイルすると
~/chromium/src/xcodebuild/Debug
Releaseでコンパイルすると
~/chromium/src/xcodebuild/Release
にTestShell.appができあがっています。
JavaScriptのソートデモがあったので、いろいろなブラウザで実行してみました。
数字の単位は、ms(ミリ秒)です。
一番速いWebkitは、SafariのNightly Buildsです。
肝心のTestShell(Chromium)は、まだまだですね。
HeapSort | QuickSort | BubbleSort | |
Webkit(r38688) | 1229 | 924 | 6619 |
Safari(3.2) | 2852 | 2153 | 18677 |
TestShell | 3684 | 2908 | 17552 |
Camino(1.6.5) | 6814 | 4464 | 35457 |
Firefox(3.0.3) | 8887 | 6180 | 66289 |
Opera(9.62) | 86971 | 72483 | 242346 |
コメント