Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit f4279a93 authored by Noric Couderc's avatar Noric Couderc

Removed main() from ListApplicationBenchmark

This main does not seem to be accessible.
parent 8a3ea17d
......@@ -13,10 +13,11 @@ public class ListApplicationBenchmark {
@State(Scope.Thread)
public static class ListBenchmarkState {
@Param({"0", "1", "2", "3"})
@Param({"1"})
public int seed;
@Param({"100", "1000"})
@Param({"1000"})
public int applicationSize;
@Param({"LinkedList", "ArrayList", "Vector"})
......@@ -41,36 +42,4 @@ public class ListApplicationBenchmark {
public void ListApplicationBenchmark(ListBenchmarkState state, Blackhole blackhole) throws InvocationTargetException, IllegalAccessException, InstantiationException {
blackhole.consume(state.currentApplication.benchmark());
}
// public static void main(String[] args) throws RunnerException, IOException {
// ApplicationRunner runner = new ApplicationRunner();
// List<TrainingSetValue> phase1Set = new ArrayList<>();
// try {
// phase1Set = runner.runBenchmarks(
// runner.createListApplications(2, 1000)
// );
// } catch (InvocationTargetException e) {
// e.printStackTrace();
// } catch (IllegalAccessException e) {
// e.printStackTrace();
// }
// if (phase1Set.isEmpty()) { return; }
// List<String> seeds =
// phase1Set.stream().map((v) ->
// Integer.toString(v.getApplication().seed)).collect(Collectors.toList());
// List<String> applicationSizes =
// phase1Set.stream().map((v) ->
// Integer.toString(v.getApplication().applicationSize))
// .collect(Collectors.toList());
// Options opt = new OptionsBuilder()
// .include(ListApplicationBenchmark.class.getSimpleName())
// .param("seed", seeds.toArray(new String[0]))
// .param("applicationSize", applicationSizes.toArray(new String[0]))
// .build();
// new Runner(opt).run();
// }
}
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