Commit e1605b46 authored by Dave Syer's avatar Dave Syer

Add launcher.count as useful performance testing aid

parent 895daacd
...@@ -41,6 +41,9 @@ public class JarLauncher extends ExecutableArchiveLauncher { ...@@ -41,6 +41,9 @@ public class JarLauncher extends ExecutableArchiveLauncher {
} }
public static void main(String[] args) { 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 { ...@@ -539,7 +539,10 @@ public class PropertiesLauncher extends Launcher {
} }
public static void main(String[] args) { 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) { public static String toCamelCase(CharSequence string) {
......
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