| # Copyright (c) 2024, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| result = argparse.ArgumentParser() |
| result.add_argument('--app', |
| help='Specific app to measure.', |
| default='NowInAndroidApp') |
| result.add_argument('--iterations', |
| help='How many iterations to run.', |
| default=DEFAULT_ITERATIONS) |
| return result.parse_known_args() |
| (options, args) = ParseOptions() |
| cmd = ['tools/run_benchmark.py', '--target', 'r8-full', '--benchmark', |
| subprocess.check_call(cmd) |
| for i in range(options.iterations): |
| subprocess.check_call(cmd) |
| if __name__ == '__main__': |