Package com.cloudera.util

Examples of com.cloudera.util.Benchmark.done()


        // expected.
      }

    }
    b.mark("complete-good-bad", good, bad, lines);
    b.done();
  }

  /**
   * Generates a dataset, puts it into a memory buffer, and the uses the
   * DataInputStream machinery to read through it 1000 bytes at a time.
View Full Code Here


      sink2.append(e2);
    }
    sink2.close();
    b.mark("count done", sink2.getCount());

    b.done();
  }

}
View Full Code Here

        // expected.
      }

    }
    b.mark("complete-good-bad", good, bad, lines);
    b.done();
  }

  /**
   * Generates a dataset, puts it into a memory buffer, and the uses the
   * DataInputStream machinery to read through it one byte at a time.
View Full Code Here

        // expected.
      }

    }
    b.mark("complete-good-bad", good, bad, lines);
    b.done();
  }

  /**
   * Generates a dataset, puts it into a memory buffer, and the uses the
   * DataInputStream machinery to read through it one parsed record at a time.
View Full Code Here

          bad++;
        }
      }
    }
    b.mark("complete-good-bad", good, bad, lines);
    b.done();
  }

  /**
   * A harness so that the profiler can attach to the process.
   */
 
View Full Code Here

    EventSink nullsnk = new NullSink();
    EventUtil.dumpAll(mem, nullsnk);
    b.mark("nullsink done");

    b.done();
  }

  @Test
  public void testCountSink() throws IOException, InterruptedException {
    Benchmark b = new Benchmark("nullsink");
View Full Code Here

    CounterSink snk = new CounterSink("counter");
    EventUtil.dumpAll(mem, snk);
    b.mark(snk.getName() + " done", snk.getCount());

    b.done();
  }

  @Test
  public void testHadoopRegexes() throws IOException, InterruptedException {
    Benchmark b = new Benchmark("hadoop_regexes");
View Full Code Here

    b.mark("filters_loaded", new File(HADOOP_REGEXES).getName(), sinks.size());

    EventUtil.dumpAll(mem, snk);
    b.mark(snk.getName() + " done");

    b.done();
  }

  @Test
  public void testHadoopRegexes11() throws IOException, InterruptedException {
    Benchmark b = new Benchmark("hadoop_regexes");
View Full Code Here

        .size());

    EventUtil.dumpAll(mem, snk);
    b.mark(snk.getName() + " done");

    b.done();
  }
}
View Full Code Here

    b.mark("seqfile_disk_write");

    sink.close();
    b.mark("seqfile size", tmp.length());
    b.done();
    mem = null; // allow mem to be freed.

    // //////// second phase using the file written in previous phase.
    Benchmark b2 = new Benchmark("seqfile_disk_read");
    b2.mark("begin");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.