| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 "kraken/stanford-crypto-aes", | 57 "kraken/stanford-crypto-aes", |
| 58 "kraken/stanford-crypto-ccm", | 58 "kraken/stanford-crypto-ccm", |
| 59 "kraken/stanford-crypto-pbkdf2", | 59 "kraken/stanford-crypto-pbkdf2", |
| 60 "kraken/stanford-crypto-sha256-iterative", | 60 "kraken/stanford-crypto-sha256-iterative", |
| 61 | 61 |
| 62 "octane/box2d", | 62 "octane/box2d", |
| 63 "octane/code-load", | 63 "octane/code-load", |
| 64 "octane/crypto", | 64 "octane/crypto", |
| 65 "octane/deltablue", | 65 "octane/deltablue", |
| 66 "octane/earley-boyer", | 66 "octane/earley-boyer", |
| 67 "octane/gbemu", | 67 "octane/gbemu-part1", |
| 68 "octane/mandreel", | 68 "octane/mandreel", |
| 69 "octane/navier-stokes", | 69 "octane/navier-stokes", |
| 70 "octane/pdfjs", | 70 "octane/pdfjs", |
| 71 "octane/raytrace", | 71 "octane/raytrace", |
| 72 "octane/regexp", | 72 "octane/regexp", |
| 73 "octane/richards", | 73 "octane/richards", |
| 74 "octane/splay", | 74 "octane/splay", |
| 75 "octane/typescript", |
| 76 "octane/zlib", |
| 75 | 77 |
| 76 "sunspider/3d-cube", | 78 "sunspider/3d-cube", |
| 77 "sunspider/3d-morph", | 79 "sunspider/3d-morph", |
| 78 "sunspider/3d-raytrace", | 80 "sunspider/3d-raytrace", |
| 79 "sunspider/access-binary-trees", | 81 "sunspider/access-binary-trees", |
| 80 "sunspider/access-fannkuch", | 82 "sunspider/access-fannkuch", |
| 81 "sunspider/access-nbody", | 83 "sunspider/access-nbody", |
| 82 "sunspider/access-nsieve", | 84 "sunspider/access-nsieve", |
| 83 "sunspider/bitops-3bit-bits-in-byte", | 85 "sunspider/bitops-3bit-bits-in-byte", |
| 84 "sunspider/bitops-bits-in-byte", | 86 "sunspider/bitops-bits-in-byte", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 104 | 106 |
| 105 def GetFlagsForTestCase(self, testcase, context): | 107 def GetFlagsForTestCase(self, testcase, context): |
| 106 result = [] | 108 result = [] |
| 107 result += context.mode_flags | 109 result += context.mode_flags |
| 108 if testcase.path.startswith("kraken"): | 110 if testcase.path.startswith("kraken"): |
| 109 result.append(os.path.join(self.testroot, "%s-data.js" % testcase.path)) | 111 result.append(os.path.join(self.testroot, "%s-data.js" % testcase.path)) |
| 110 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 112 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 111 elif testcase.path.startswith("octane"): | 113 elif testcase.path.startswith("octane"): |
| 112 result.append(os.path.join(self.testroot, "octane/base.js")) | 114 result.append(os.path.join(self.testroot, "octane/base.js")) |
| 113 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 115 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 116 if testcase.path.startswith("octane/gbemu"): |
| 117 result.append(os.path.join(self.testroot, "octane/gbemu-part2.js")) |
| 118 elif testcase.path.startswith("octane/typescript"): |
| 119 result.append(os.path.join(self.testroot, |
| 120 "octane/typescript-compiler.js")) |
| 121 result.append(os.path.join(self.testroot, "octane/typescript-input.js")) |
| 122 elif testcase.path.startswith("octane/zlib"): |
| 123 result.append(os.path.join(self.testroot, "octane/zlib-data.js")) |
| 114 result += ["-e", "BenchmarkSuite.RunSuites({});"] | 124 result += ["-e", "BenchmarkSuite.RunSuites({});"] |
| 115 elif testcase.path.startswith("sunspider"): | 125 elif testcase.path.startswith("sunspider"): |
| 116 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 126 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 117 return testcase.flags + result | 127 return testcase.flags + result |
| 118 | 128 |
| 119 def GetSourceForTest(self, testcase): | 129 def GetSourceForTest(self, testcase): |
| 120 filename = os.path.join(self.testroot, testcase.path + ".js") | 130 filename = os.path.join(self.testroot, testcase.path + ".js") |
| 121 with open(filename) as f: | 131 with open(filename) as f: |
| 122 return f.read() | 132 return f.read() |
| 123 | 133 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 151 tar.add("%s" % target_dir) | 161 tar.add("%s" % target_dir) |
| 152 with open(revision_file, "w") as f: | 162 with open(revision_file, "w") as f: |
| 153 f.write(revision) | 163 f.write(revision) |
| 154 | 164 |
| 155 def DownloadData(self): | 165 def DownloadData(self): |
| 156 old_cwd = os.getcwd() | 166 old_cwd = os.getcwd() |
| 157 os.chdir(os.path.abspath(self.root)) | 167 os.chdir(os.path.abspath(self.root)) |
| 158 | 168 |
| 159 self._DownloadIfNecessary( | 169 self._DownloadIfNecessary( |
| 160 ("http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/" | 170 ("http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/" |
| 161 "SunSpider/tests/sunspider-1.0/"), | 171 "SunSpider/tests/sunspider-1.0.2/"), |
| 162 "153700", "sunspider") | 172 "159499", "sunspider") |
| 163 | 173 |
| 164 self._DownloadIfNecessary( | 174 self._DownloadIfNecessary( |
| 165 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/" | 175 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/" |
| 166 "kraken-1.1/"), | 176 "kraken-1.1/"), |
| 167 "8", "kraken") | 177 "8", "kraken") |
| 168 | 178 |
| 169 self._DownloadIfNecessary( | 179 self._DownloadIfNecessary( |
| 170 "http://octane-benchmark.googlecode.com/svn/trunk/", | 180 "http://octane-benchmark.googlecode.com/svn/trunk/", |
| 171 "22", "octane") | 181 "26", "octane") |
| 172 | 182 |
| 173 os.chdir(old_cwd) | 183 os.chdir(old_cwd) |
| 174 | 184 |
| 175 def VariantFlags(self, testcase, default_flags): | 185 def VariantFlags(self, testcase, default_flags): |
| 176 # Both --nocrankshaft and --stressopt are very slow. | 186 # Both --nocrankshaft and --stressopt are very slow. |
| 177 return [[]] | 187 return [[]] |
| 178 | 188 |
| 179 | 189 |
| 180 def GetSuite(name, root): | 190 def GetSuite(name, root): |
| 181 return BenchmarksTestSuite(name, root) | 191 return BenchmarksTestSuite(name, root) |
| OLD | NEW |