segstore: Add assert on item count for iteration benchmarks
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Thu, 24 Nov 2016 20:53:26 +0000 (15:53 -0500)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Wed, 7 Dec 2016 19:09:28 +0000 (14:09 -0500)
commit7906671c73df7b70504354053ce16922131b68dc
treed573bf75325c0f41c1f50d8f169f281668211dec
parent095e616152811959d2f5fa5e7e81e209f78d8e7b
segstore: Add assert on item count for iteration benchmarks

This patch adds asserts on the item count when iterating the segment
store in the benchmark. It makes sure that all iterations actually
iterate over all the elements of the segment and does not give a false
impression of performance if there is a bug in the iterator.

Also remove the System.gc() that are not useful to the test

Change-Id: I87acbb264703f06a166239655f3911697c17126e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/85724
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
statesystem/org.eclipse.tracecompass.segmentstore.core.tests/perf/org/eclipse/tracecompass/analysis/timing/core/tests/store/SegmentStoreBenchmark.java
This page took 0.025778 seconds and 5 git commands to generate.