Chromium Code Reviews| 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/gbemu-part2", | |
|
Jakob Kummerow
2013/11/20 09:35:15
Nope, this doesn't do what you want. Skip this ent
Yang
2013/11/20 11:04:08
Done.
| |
| 68 "octane/mandreel", | 69 "octane/mandreel", |
| 69 "octane/navier-stokes", | 70 "octane/navier-stokes", |
| 70 "octane/pdfjs", | 71 "octane/pdfjs", |
| 71 "octane/raytrace", | 72 "octane/raytrace", |
| 72 "octane/regexp", | 73 "octane/regexp", |
| 73 "octane/richards", | 74 "octane/richards", |
| 74 "octane/splay", | 75 "octane/splay", |
| 75 | 76 |
|
Jakob Kummerow
2013/11/20 09:35:15
please add typescript and zlib too.
Yang
2013/11/20 11:04:08
Done.
| |
| 76 "sunspider/3d-cube", | 77 "sunspider/3d-cube", |
| 77 "sunspider/3d-morph", | 78 "sunspider/3d-morph", |
| 78 "sunspider/3d-raytrace", | 79 "sunspider/3d-raytrace", |
| 79 "sunspider/access-binary-trees", | 80 "sunspider/access-binary-trees", |
| 80 "sunspider/access-fannkuch", | 81 "sunspider/access-fannkuch", |
| 81 "sunspider/access-nbody", | 82 "sunspider/access-nbody", |
| 82 "sunspider/access-nsieve", | 83 "sunspider/access-nsieve", |
| 83 "sunspider/bitops-3bit-bits-in-byte", | 84 "sunspider/bitops-3bit-bits-in-byte", |
| 84 "sunspider/bitops-bits-in-byte", | 85 "sunspider/bitops-bits-in-byte", |
| 85 "sunspider/bitops-bitwise-and", | 86 "sunspider/bitops-bitwise-and", |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 102 tests.append(testcase.TestCase(self, test)) | 103 tests.append(testcase.TestCase(self, test)) |
| 103 return tests | 104 return tests |
| 104 | 105 |
| 105 def GetFlagsForTestCase(self, testcase, context): | 106 def GetFlagsForTestCase(self, testcase, context): |
| 106 result = [] | 107 result = [] |
| 107 result += context.mode_flags | 108 result += context.mode_flags |
| 108 if testcase.path.startswith("kraken"): | 109 if testcase.path.startswith("kraken"): |
| 109 result.append(os.path.join(self.testroot, "%s-data.js" % testcase.path)) | 110 result.append(os.path.join(self.testroot, "%s-data.js" % testcase.path)) |
| 110 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 111 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 111 elif testcase.path.startswith("octane"): | 112 elif testcase.path.startswith("octane"): |
| 112 result.append(os.path.join(self.testroot, "octane/base.js")) | 113 result.append(os.path.join(self.testroot, "octane/base.js")) |
|
Jakob Kummerow
2013/11/20 09:35:15
you'll need more special-casing here to support mu
Yang
2013/11/20 11:04:08
Done.
| |
| 113 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 114 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 114 result += ["-e", "BenchmarkSuite.RunSuites({});"] | 115 result += ["-e", "BenchmarkSuite.RunSuites({});"] |
| 115 elif testcase.path.startswith("sunspider"): | 116 elif testcase.path.startswith("sunspider"): |
| 116 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) | 117 result.append(os.path.join(self.testroot, "%s.js" % testcase.path)) |
| 117 return testcase.flags + result | 118 return testcase.flags + result |
| 118 | 119 |
| 119 def GetSourceForTest(self, testcase): | 120 def GetSourceForTest(self, testcase): |
| 120 filename = os.path.join(self.testroot, testcase.path + ".js") | 121 filename = os.path.join(self.testroot, testcase.path + ".js") |
| 121 with open(filename) as f: | 122 with open(filename) as f: |
| 122 return f.read() | 123 return f.read() |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 151 tar.add("%s" % target_dir) | 152 tar.add("%s" % target_dir) |
| 152 with open(revision_file, "w") as f: | 153 with open(revision_file, "w") as f: |
| 153 f.write(revision) | 154 f.write(revision) |
| 154 | 155 |
| 155 def DownloadData(self): | 156 def DownloadData(self): |
| 156 old_cwd = os.getcwd() | 157 old_cwd = os.getcwd() |
| 157 os.chdir(os.path.abspath(self.root)) | 158 os.chdir(os.path.abspath(self.root)) |
| 158 | 159 |
| 159 self._DownloadIfNecessary( | 160 self._DownloadIfNecessary( |
| 160 ("http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/" | 161 ("http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/" |
| 161 "SunSpider/tests/sunspider-1.0/"), | 162 "SunSpider/tests/sunspider-1.0.2/"), |
| 162 "153700", "sunspider") | 163 "159499", "sunspider") |
| 163 | 164 |
| 164 self._DownloadIfNecessary( | 165 self._DownloadIfNecessary( |
| 165 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/" | 166 ("http://kraken-mirror.googlecode.com/svn/trunk/kraken/tests/" |
| 166 "kraken-1.1/"), | 167 "kraken-1.1/"), |
| 167 "8", "kraken") | 168 "8", "kraken") |
| 168 | 169 |
| 169 self._DownloadIfNecessary( | 170 self._DownloadIfNecessary( |
| 170 "http://octane-benchmark.googlecode.com/svn/trunk/", | 171 "http://octane-benchmark.googlecode.com/svn/trunk/", |
| 171 "22", "octane") | 172 "26", "octane") |
| 172 | 173 |
| 173 os.chdir(old_cwd) | 174 os.chdir(old_cwd) |
| 174 | 175 |
| 175 def VariantFlags(self, testcase, default_flags): | 176 def VariantFlags(self, testcase, default_flags): |
| 176 # Both --nocrankshaft and --stressopt are very slow. | 177 # Both --nocrankshaft and --stressopt are very slow. |
| 177 return [[]] | 178 return [[]] |
| 178 | 179 |
| 179 | 180 |
| 180 def GetSuite(name, root): | 181 def GetSuite(name, root): |
| 181 return BenchmarksTestSuite(name, root) | 182 return BenchmarksTestSuite(name, root) |
| OLD | NEW |