OLD | NEW |
---|---|
1 Setup to run all performance tests: | 1 Setup to run all performance tests: |
2 | 2 |
3 TODO(efortuna): run through these steps again on a clean machine to make sure I | 3 TODO(efortuna): run through these steps again on a clean machine to make sure I |
4 didn't leave anything out! | 4 didn't leave anything out! |
5 | 5 |
6 Overview: | 6 Overview: |
7 These are the instructions to run a wide variety of performance tests using | 7 These are the instructions to run a wide variety of performance tests using |
8 dart/tools/testing/perf_testing/create_graph.py. Currently the results are | 8 dart/tools/testing/perf_testing/create_graph.py. Currently the results are |
9 uploaded to https://dartperf.googleplex.com/. | 9 uploaded to https://dartperf.googleplex.com/. |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... | |
39 2) Install OpenSSL | 39 2) Install OpenSSL |
40 3) Copy the directory OpenSSL-Win32/include/openssl to | 40 3) Copy the directory OpenSSL-Win32/include/openssl to |
41 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include | 41 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include |
42 4) Copy the ***contents*** of the directory OpenSSL-Win32/lib/VC/static/ to | 42 4) Copy the ***contents*** of the directory OpenSSL-Win32/lib/VC/static/ to |
43 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib | 43 C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib |
44 | 44 |
45 ============= All Platforms ================ | 45 ============= All Platforms ================ |
46 | 46 |
47 1) Ensure Python 2.7 is installed and in your path. | 47 1) Ensure Python 2.7 is installed and in your path. |
48 | 48 |
49 2) Install selenium library python bindings | 49 2) Run the following command while standing in this directory: |
50 (http://pypi.python.org/pypi/selenium) | 50 $> sudo buildbot_browser_test_setup.sh |
51 | |
52 If that doesn't work, or you're running Windows, here are the manual steps: | |
53 a) Install selenium library python bindings | |
54 (http://pypi.python.org/pypi/selenium) | |
55 b) Ensure Firefox is installed. | |
51 | 56 |
52 3) Mac only: | 57 3) Mac only: |
53 Download and install xcode 3.2: | 58 Download and install xcode 3.2: |
54 https://developer.apple.com/devcenter/download.action?path=/Developer_Tools /xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg | 59 https://developer.apple.com/devcenter/download.action?path=/Developer_Tools /xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg |
55 a) Mount dmg | 60 a) Mount dmg |
56 b) LION only: At a terminal type: | 61 b) LION only: At a terminal type: |
57 TODO(efortuna): verify | 62 TODO(efortuna): verify |
58 $> export COMMAND_LINE_INSTALL=1 | 63 $> export COMMAND_LINE_INSTALL=1 |
59 $> open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg" | 64 $> open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg" |
60 c) Install. | 65 c) Install. |
61 | 66 |
62 4) (Mac OS Lion only) Install xcode 4.0 and then run: | 67 4) (Mac OS Lion only) Install xcode 4.0 and then run: |
63 $> xcode-select -switch /path/to/xcode3.2.6/ | 68 $> xcode-select -switch /path/to/xcode3.2.6/ |
64 | 69 |
65 5) Ensure Firefox is installed. | 70 5) Ensure Java is installed and in your path. If not, install the Java jdk |
66 | |
67 If you only want to run the smoketests, you're done! | |
68 While standing in dart/tools/testing/perf_testing, run | |
69 $> python create_graph.py -b | |
70 If everything goes well, you'll see it print out "PASS" at the command line. | |
71 | |
72 To continue on to run the performance tests: | |
73 | |
74 6) Ensure Java is installed and in your path. If not, install the Java jdk | |
75 (so that we can run the webdriver server from its jar) | 71 (so that we can run the webdriver server from its jar) |
76 | 72 |
77 7) Add the following to your DEPS file in all.deps in the "deps = {" section: | 73 6) Download selenium-server-standalone-2.15.0.jar (only to run Safari) |
78 # Copy of Python appengine latest release version» » | |
79 "dart/third_party/appengine-python/1.5.4":» » | |
80 "http://googleappengine.googlecode.com/svn/trunk/python@199", | |
81 | |
82 8) Download selenium-server-standalone-2.15.0.jar (only to run Safari) | |
83 http://selenium.googlecode.com/files/selenium-server-standalone-2.15.0.jar | 74 http://selenium.googlecode.com/files/selenium-server-standalone-2.15.0.jar |
84 and run it: | 75 and run it: |
85 $> java -jar selenium-server-standalone-2.15.0.jar | 76 $> java -jar selenium-server-standalone-2.15.0.jar |
86 | 77 |
87 9) Ensure that Chrome, Safari and IE (Windows only) are installed. | 78 7) Ensure that Chrome, Safari and IE (Windows only) are installed. |
88 | 79 |
89 10)Download the Chrome Driver: http://code.google.com/p/chromium/downloads/list | 80 8)Download the Chrome Driver: http://code.google.com/p/chromium/downloads/list |
90 and make sure it is in your path. | 81 and make sure it is in your path. |
91 | 82 |
92 11) a) Disable pop-up blocking in Safari: | 83 9) a) Disable pop-up blocking in Safari: |
93 Preferences -> Security -> (unselect) Block pop-up windows. | 84 Preferences -> Security -> (unselect) Block pop-up windows. |
94 b) copy the file in /Library/Preferences/com.apple.Safari.plist to | 85 b) copy the file in /Library/Preferences/com.apple.Safari.plist to |
95 $DARTDIR/tools/testing/com.apple.Safari.plist | 86 $DARTDIR/tools/testing/com.apple.Safari.plist |
96 (We do this because Safari deletes our preferences (on no pop-up | 87 (We do this because Safari deletes our preferences (on no pop-up |
97 blocking) if it crashes (aka times out) two times in a row.) | 88 blocking) if it crashes (aka times out) two times in a row.) |
98 | 89 |
99 12)TODO(efortuna): Deal with appengine check in! Run | 90 If you just want smoketests, you're done! Run them by typing: |
91 | |
92 $> tools/testing/bin/$YOUR_OS_DIR/dart tools/test.dart --component=webdriver | |
93 --report --timeout=20 --mode=release --browser=[ff | safari | chrome | ie] | |
94 [--frog=path/to/frog/executable/like/Release_ia32/dart-sdk/frogc | |
95 --froglib=path/to/frog/lib/like/dart/frog/lib] | |
96 | |
97 (If you don't specify frog and froglib arguments, we default to using the frogsh | |
98 living in your frog directory.) | |
99 | |
100 ========= Proceed further only if you also want to run performance tests.====== | |
101 | |
102 10)Add the following to your DEPS file in all.deps in the "deps = {" section: | |
103 # Copy of Python appengine latest release version | |
104 "dart/third_party/appengine-python/1.5.4": | |
105 "http://googleappengine.googlecode.com/svn/trunk/python@199", | |
Siggi Cherem (dart-lang)
2012/01/23 00:15:03
could we instead just download the latest distribu
Emily Fortuna
2012/01/23 16:53:04
You're right. This was just as appengine was being
| |
106 | |
107 11)Install matplotlib http://matplotlib.sourceforge.net/ | |
108 | |
109 12)Pull down benchmarks from internal repo (Google only): | |
110 http://chromegw.corp.google.com/viewvc/dash/trunk/internal/browserBenchmarks/ README.txt?view=markup | |
111 | |
112 13)TODO(efortuna): Deal with appengine check in! Run | |
100 '../../../third_party/appengine-python/1.5.4/appcfg.py update appengine/' | 113 '../../../third_party/appengine-python/1.5.4/appcfg.py update appengine/' |
101 while standing in dart/tools/testing/perf_tests. | 114 while standing in dart/tools/testing/perf_tests. |
102 | 115 |
103 13)Install matplotlib http://matplotlib.sourceforge.net/ | 116 14) Run the tests! While standing in dart/tools/testing/perf_testing, run |
104 | 117 $> python create_graph.py --forever --verbose |
105 14)Pull down benchmarks from internal repo (Google only): | |
106 http://chromegw.corp.google.com/viewvc/dash/trunk/internal/browserBenchmarks/ README.txt?view=markup | |
107 | |
108 15) Run the tests! While standing in dart/tools/testing/perf_testing, run | |
109 $> python create_graph.py --forever --verbose --perfbot | |
110 to run all the tests (browser performance, language correctness in the | 118 to run all the tests (browser performance, language correctness in the |
111 browser, command line performance, and self-hosted compile time and compiled | 119 browser, command line performance, and self-hosted compile time and compiled |
112 code size). | 120 code size). |
113 | 121 |
114 You can run individual tests by adding the particular option (such as | 122 You can run individual tests by adding the particular option (such as |
115 --language) when running create_graph.py. Type "create_graph.py -h" for a | 123 --language) when running create_graph.py. Type "create_graph.py -h" for a |
116 full list of the options. | 124 full list of the options. |
OLD | NEW |