Skip to content

Commit ae60ae4

Browse files
committed
Updated selenium driver and results
1 parent 8ae7f01 commit ae60ae4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

webdriver-java/chartData.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webdriver-java/src/main/java/net/stefankrause/App.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
public class App {
2727

2828
public static final int WARMUP_COUNT = 5;
29-
private final static int REPEAT_RUN = 5;
29+
private final static int REPEAT_RUN = 12;
30+
private final static int DROP_WORST_COUNT = 2;
3031
private final static String frameworks[] = {"angular", "angular2","aurelia", "ember/dist", "mithril", "ractive", "react", "vidom", "vue"};
3132
private final static Bench[] benches = new Bench[] {new BenchRun(), new BenchRunHot(), new BenchUpdate(), new BenchSelect(), new BenchRemove()};
3233

@@ -216,6 +217,13 @@ private void runTests() throws Exception {
216217
lastWait = data[i];
217218
}
218219
}
220+
System.out.println("before "+Arrays.toString(data));
221+
if (DROP_WORST_COUNT>0) {
222+
Arrays.sort(data);
223+
data = Arrays.copyOf(data, data.length-DROP_WORST_COUNT);
224+
System.out.println("after "+Arrays.toString(data));
225+
System.out.println(Arrays.toString(data));
226+
}
219227
DoubleSummaryStatistics stats = DoubleStream.of(data).summaryStatistics();
220228
results.put(framework, bench.getName(), stats);
221229
} finally {
@@ -341,7 +349,7 @@ Double printLog(WebDriver driver, boolean print, boolean isAurelia) throws Excep
341349
filter(pe -> pe.ts > tsAfter).findFirst();
342350

343351
if (print) System.out.println("************************ filtered events");
344-
filtered.forEach(e -> System.out.println(e));
352+
if (print) filtered.forEach(e -> System.out.println(e));
345353
if (evt.isPresent() && lastPaint.isPresent()) {
346354
if (print) System.out.println("Duration "+(lastPaint.get().ts + lastPaint.get().duration - evt.get().ts)/1000.0);
347355
return (lastPaint.get().ts + lastPaint.get().duration - evt.get().ts)/1000.0;

0 commit comments

Comments
 (0)