| // Copyright (c) 2022, 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. |
| package com.android.tools.r8.benchmarks; |
| |
| /** Enumeration of the benchmark suites on Golem. */ |
| public enum BenchmarkSuite { |
| R8_BENCHMARKS("R8Benchmarks", "suite"), |
| D8_BENCHMARKS("D8KeyBenchmarks", "d8KeySuite"), |
| D8_INCREMENTAL_BENCHMARKS("D8IncrementalBenchmarks", "incrementalSuite"), |
| OPENSOURCE_BENCHMARKS("OpenSourceAppDumps", "dumpsSuite"), |
| MEMORY_BENCHMARKS("R8MemoryBenchmarks", "r8MemorySuite"), |
| RETRACE_BENCHMARKS("R8RetraceBenchmarks", "r8RetraceSuite"); |
| |
| private final String golemName; |
| private final String dartName; |
| |
| public static BenchmarkSuite getDefault() { |
| return R8_BENCHMARKS; |
| } |
| |
| BenchmarkSuite(String golemName, String dartName) { |
| this.golemName = golemName; |
| this.dartName = dartName; |
| } |
| |
| /** The name as shown in golems listings. */ |
| public String getGolemName() { |
| return golemName; |
| } |
| |
| /** The variable name used for the suite in the benchmarks.dart script. */ |
| public String getDartName() { |
| return dartName; |
| } |
| } |