Running generated benchmarks doesn't do anything.
I wrote the following test:
@Test
public void TestBenchmarkTrace() {
int sz = 200000;
BCBenchmarkPackage<Map<Object, Object>> pk = BCBenchmarkPackage.MAP(0, sz, 0,
new HashMap<>());
pk.reset();
pk.runBenchmark(blackhole);
blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
BCBenchmarkPackage<Map<Object, Object>> copy = BCBenchmarkPackage.MAP("TRACE",
pk.getTrace(),
new HashMap<>());
copy.reset();
copy.runBenchmark(blackhole);
blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
Assert.assertEquals(sz, pk.getTrace().size());
Assert.assertEquals(sz, copy.getTrace().size());
Assert.assertEquals(pk.getTrace(), copy.getTrace());
Assert.assertFalse(pk.getDataStructure().isEmpty());
Assert.assertFalse(copy.getDataStructure().isEmpty());
Assert.assertEquals(pk.getDataStructure(), copy.getDataStructure());
}
The datastructure is empty, for both benchmarks, which is very unlikely.