public class PerfSamplers implements ExamplePerfData {
@Test
public void testReservoirSampler() throws IOException, InterruptedException {
Benchmark b = new Benchmark("Reservoir sampler + nullsink");
b.mark("begin");
TextFileSource txt = new TextFileSource(HADOOP_DATA[0]);
txt.open();
MemorySinkSource mem = new MemorySinkSource();
mem.open();
EventUtil.dumpAll(txt, mem);