WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit 93a97d64 authored by john's avatar john
Browse files

removed jar directive from .cnf and renamed libs directive to jars and...

removed jar directive from .cnf and renamed libs directive to jars and included jar entry in jars list
parent 9e43241f
benchmark avrora
class org.dacapo.harness.Avrora
thread-model single
jar "avrora-cvs-20091224.jar";
jars "avrora-cvs-20091224.jar";
size small args "-seconds=30",
"-platform=mica2",
......
benchmark batik
class org.dacapo.harness.Batik
thread-model single
jar "batik-all.jar"
libs "xml-apis-ext.jar","xml-apis.jar", "crimson-1.1.3.jar", "xerces_2_5_0.jar", "xalan-2.6.0.jar";
jars "batik-all.jar", "xml-apis-ext.jar","xml-apis.jar", "crimson-1.1.3.jar", "xerces_2_5_0.jar", "xalan-2.6.0.jar";
/*
* Validation currently limited to checking existence of output file
......
benchmark eclipse
class org.dacapo.harness.Eclipse
thread-model single
jar "eclipse.jar";
jars "eclipse.jar";
size small args "setup"
output stdout digest 0x9d0460a842b72206720942a60581729eaed17d9f,
......
benchmark fop
class org.dacapo.harness.Fop
thread-model single
jar "fop.jar"
libs "avalon-framework-4.2.0.jar", "batik-all-1.7.jar", "commons-io-1.3.1.jar", "commons-logging-1.0.4.jar", "serializer-2.7.0.jar", "xmlgraphics-commons-1.3.1.jar", "xalan-2.7.0.jar";
jars "fop.jar", "avalon-framework-4.2.0.jar", "batik-all-1.7.jar", "commons-io-1.3.1.jar", "commons-logging-1.0.4.jar", "serializer-2.7.0.jar", "xmlgraphics-commons-1.3.1.jar", "xalan-2.7.0.jar";
/*
* 'small' uses debug mode ("-d"), which puts current stats in the output,
......
benchmark h2
class org.dacapo.harness.H2
thread-model per_cpu
libs "derbyTesting.jar","junit-3.8.1.jar","h2-1.2.121.jar","tpcc.jar";
jars "derbyTesting.jar","junit-3.8.1.jar","h2-1.2.121.jar","tpcc.jar";
size small args
"--total-transactions", "400",
......
benchmark jython
class org.dacapo.harness.Jython
thread-model single
jar "jython.jar"
libs "antlr-3.1.3.jar", "asm-3.1.jar", "asm-commons-3.1.jar", "constantine-0.4.jar", "jna-posix.jar", "jna.jar";
jars "jython.jar", "antlr-3.1.3.jar", "asm-3.1.jar", "asm-commons-3.1.jar", "constantine-0.4.jar", "jna-posix.jar", "jna.jar";
size small args "${SCRATCH}/jython/sieve.py","50"
output stdout digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709,
......
benchmark luindex
class org.dacapo.harness.Luindex
thread-model single
jar "luindex.jar"
libs "lucene-core-2.4.jar", "lucene-demos-2.4.jar";
jars "luindex.jar", "lucene-core-2.4.jar", "lucene-demos-2.4.jar";
size small args "luindex/william/poetry"
output stdout digest 0xebb11b9e1c56c6ef5620b890cca24ec773301388,
......
benchmark lusearch
class org.dacapo.harness.Lusearch
thread-model per_cpu
jar "lusearch.jar"
libs "lucene-core-2.4.jar", "lucene-demos-2.4.jar";
jars "lusearch.jar", "lucene-core-2.4.jar", "lucene-demos-2.4.jar";
size small args "-index","${SCRATCH}/lusearch/index-default",
"-queries","${SCRATCH}/lusearch/query",
......
benchmark pmd
class org.dacapo.harness.Pmd
thread-model single
jar "pmd-4.2.5.jar"
libs "jaxen-1.1.1.jar", "asm-3.1.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar";
jars "pmd-4.2.5.jar", "jaxen-1.1.1.jar", "asm-3.1.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar";
size xsmall args "@pmd/small.lst","xml","pmd/rulesets/imports.xml","-debug"
output
......
benchmark sunflow
class org.dacapo.harness.Sunflow
thread-model per_cpu
jar "sunflow-0.07.2.jar"
libs "janino-2.5.15.jar";
jars "sunflow-0.07.2.jar", "janino-2.5.15.jar";
size small args "32"
thread-limit 32
......
benchmark tomcat
class org.dacapo.harness.Tomcat
thread-model per_cpu
jar "dacapo-tomcat.jar"
libs "bootstrap.jar","tomcat-juli.jar","commons-daemon.jar","commons-httpclient.jar",
jars "dacapo-tomcat.jar", "bootstrap.jar","tomcat-juli.jar","commons-daemon.jar","commons-httpclient.jar",
"commons-logging.jar","commons-codec.jar";
......
benchmark tradebeans
class org.dacapo.harness.Tradebeans
thread-model per_cpu
libs "daytrader.jar";
jars "daytrader.jar";
size small args "tiny"
threads 1 // per available processor
......
benchmark tradesoap
class org.dacapo.harness.Tradesoap
thread-model per_cpu
libs "daytrader.jar";
jars "daytrader.jar";
size small args "tiny"
threads 1 // per available processor
......
benchmark xalan
class org.dacapo.harness.Xalan
thread-model per_cpu
jar "xalan-benchmark.jar"
libs "xalan.jar", "xercesImpl.jar", "xml-apis.jar", "serializer.jar";
jars "xalan-benchmark.jar", "xalan.jar", "xercesImpl.jar", "xml-apis.jar", "serializer.jar";
size small args "10"
threads 1
......
......@@ -233,11 +233,9 @@ public abstract class Benchmark {
File file = new File(scratch + "/jar");
if (!file.exists())
file.mkdir();
if (config.jar != null)
extractFileResource("jar/" + config.jar, scratch);
if (config.libs != null) {
for (int i = 0; i < config.libs.length; i++) {
extractFileResource("jar/" + config.libs[i], scratch);
if (config.jars != null) {
for (int i = 0; i < config.jars.length; i++) {
extractFileResource("jar/" + config.jars[i], scratch);
}
}
}
......
......@@ -95,13 +95,9 @@ public class DacapoClassLoader extends URLClassLoader {
private static URL[] getJars(Config config, File scratch) throws MalformedURLException {
List<URL> jars = new ArrayList<URL>();
File jardir = new File(scratch, "jar");
if (config.jar != null) {
File jar = new File(jardir, config.jar);
jars.add(jar.toURL());
}
if (config.libs != null) {
for (int i = 0; i < config.libs.length; i++) {
File jar = new File(jardir, config.libs[i]);
if (config.jars != null) {
for (int i = 0; i < config.jars.length; i++) {
File jar = new File(jardir, config.jars[i]);
jars.add(jar.toURL());
}
}
......
......@@ -253,15 +253,10 @@ public class Config {
HashMap<String, Size> sizes = new HashMap<String, Size>(3);
HashMap<String, String> desc = new HashMap<String, String>(6);
/**
* The name of the jar containing this bm
*/
public String jar;
/**
* The list of jars upon which this bm depends
*/
public String[] libs;
public String[] jars;
/**
* Constructor. These are always constructed by the parser, and at time of
......@@ -280,30 +275,17 @@ public class Config {
*
*/
/**
* Set the jar from which this benchmark executes
*
* @param jarName The name of the jar
* @throws ParseException
*/
void setJar(String jarName) throws ParseException {
if (this.jar != null) {
throw new ParseException("Configuration file error - cannot set jar name twice");
}
this.jar = jarName;
}
/**
* Set the list of libraries on which this benchmark depends
*
* @param libs An array of strings (jar names)
* @throws ParseException
*/
void setLibs(String[] libs) throws ParseException {
if (this.libs != null) {
void setJars(String[] jars) throws ParseException {
if (this.jars != null) {
throw new ParseException("Configuration file error - cannot set libs twice");
}
this.libs = libs;
this.jars = jars;
}
/**
......
......@@ -108,9 +108,8 @@ TOKEN :
| < EXISTS : "exists" >
| < FILTER : "filter" >
| < FIXED : "fixed" >
| < JAR : "jar" >
| < KEEP : "keep" >
| < LIBS : "libs" >
| < JARS : "jars" >
| < LICENSE : "license" >
| < LINES : "lines" >
| < LONG : "long" >
......@@ -178,15 +177,14 @@ void configOption(Config config) :
{
<CLASS> className=identifier() { config.setClass(className); }
| <THREAD_MODEL> threadModel=threadModel() { config.setThreadModel(threadModel); }
| <JAR> jar=string() { config.setJar(jar); }
| <LIBS> libraries(config)
| <JARS> libraries(config)
}
void libraries(Config config) :
{ ArrayList libs = new ArrayList(); String lib; }
{ ArrayList jars = new ArrayList(); String jar; }
{
lib=string() { libs.add(lib); } (<COMMA> lib=string() { libs.add(lib); })*
{ config.setLibs((String[]) libs.toArray(new String[0])); }
jar=string() { jars.add(jar); } (<COMMA> jar=string() { jars.add(jar); })*
{ config.setJars((String[]) jars.toArray(new String[0])); }
}
void sizeSpec(Config config) :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment