Add launcher.count as useful performance testing aid
This commit is contained in:
@@ -41,6 +41,9 @@ public class JarLauncher extends ExecutableArchiveLauncher {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new JarLauncher().launch(args);
|
||||
int count = new Integer(System.getProperty("launcher.count", "1"));
|
||||
for (int i = 0; i < count; i++) {
|
||||
new JarLauncher().launch(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -539,7 +539,10 @@ public class PropertiesLauncher extends Launcher {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new PropertiesLauncher().launch(args);
|
||||
int count = new Integer(System.getProperty("launcher.count", "1"));
|
||||
for (int i = 0; i < count; i++) {
|
||||
new PropertiesLauncher().launch(args);
|
||||
}
|
||||
}
|
||||
|
||||
public static String toCamelCase(CharSequence string) {
|
||||
|
||||
Reference in New Issue
Block a user