1 /*
2 * DaCapo Benchmark Maven Plugin
3 * Copyright (C) 2010 Technische Universität Darmstadt
4 * info@scalabench.org
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 package org.scalabench.plugins.dacapo.config;
19
20 import java.util.*;
21
22 public class BenchmarkConfiguration {
23
24 private String harnessClass;
25
26 private ThreadModel threadModel;
27
28 private List<Size> sizes;
29
30 private Description description;
31
32 public String getHarnessClass() {
33 return harnessClass;
34 }
35
36 /**
37 * Returns the benchmark's thread model.
38 *
39 * Can be <code>SINGLE</code>, <code>FIXED</code>, or <code>PER_CPU</code>.
40 */
41 public String getThreadModel() {
42 return threadModel.toString();
43 }
44
45 /**
46 * Returns the benchmark's input sizes.
47 *
48 * The following benchmark sizes are commonly used:
49 *
50 * <ol>
51 * <li><code>tiny</code></li>
52 * <li><code>small</code></li>
53 * <li><code>default</code></li>
54 * <li><code>large</code></li>
55 * <li><code>huge</code></li>
56 * <li><code>gargantuan</code></li>
57 * <li><code>colossal</code></li>
58 * </ol>
59 */
60 public List<Size> getSizes() {
61 return (sizes == null) ? Collections.<Size>emptyList() : Collections.unmodifiableList(sizes);
62 }
63
64 public Description getDescription() {
65 return description;
66 }
67 }