Codota Logo
InfraControl.getDuration
Code IndexAdd Codota to your IDE (free)

How to use
getDuration
method
in
org.openjdk.jmh.runner.InfraControl

Best Java code snippets using org.openjdk.jmh.runner.InfraControl.getDuration (Showing top 20 results out of 369)

Refine searchRefine arrow

  • SampleTimeResult.<init>
  • BenchmarkTaskResult.add
  • InfraControl.preSetup
  • RawResults.<init>
  • InfraControl.announceWarmdownReady
  • ThreadParams.getSubgroupIndex
  • BenchmarkTaskResult.<init>
  • BenchmarkParams.getTimeUnit
  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkCPUCounters_jmhType l_benchmarkcpucounters0_0 = _jmh_tryInit_f_benchmarkcpucounters0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  nanoTime_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcpucounters0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "nanoTime", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkRoundFunction_jmhType l_benchmarkroundfunction0_0 = _jmh_tryInit_f_benchmarkroundfunction0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  floatActual_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkroundfunction0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "floatActual", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkRoundFunction_jmhType l_benchmarkroundfunction0_0 = _jmh_tryInit_f_benchmarkroundfunction0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  doubleBaseline_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkroundfunction0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "doubleBaseline", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkRoundFunction_jmhType l_benchmarkroundfunction0_0 = _jmh_tryInit_f_benchmarkroundfunction0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  floatBaseline_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkroundfunction0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "floatBaseline", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkRoundFunction_jmhType l_benchmarkroundfunction0_0 = _jmh_tryInit_f_benchmarkroundfunction0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  doubleActual_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkroundfunction0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "doubleActual", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkCPUCounters_jmhType l_benchmarkcpucounters0_0 = _jmh_tryInit_f_benchmarkcpucounters0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  cpuTime_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcpucounters0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "cpuTime", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkCPUCounters_jmhType l_benchmarkcpucounters0_0 = _jmh_tryInit_f_benchmarkcpucounters0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  userTime_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcpucounters0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "userTime", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkPartitionedOutputOperator_jmhType l_benchmarkpartitionedoutputoperator0_0 = _jmh_tryInit_f_benchmarkpartitionedoutputoperator0_0(control);
  BenchmarkPartitionedOutputOperator_BenchmarkData_jmhType l_benchmarkdata1_1 = _jmh_tryInit_f_benchmarkdata1_1(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  addPage_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkdata1_1, l_benchmarkpartitionedoutputoperator0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "addPage", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: org.apache.commons/commons-lang3

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  HashSetvBitSetTest_jmhType l_hashsetvbitsettest0_0 = _jmh_tryInit_f_hashsetvbitsettest0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  testHashSet_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_hashsetvbitsettest0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "testHashSet", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: org.apache.commons/commons-lang3

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  HashSetvBitSetTest_jmhType l_hashsetvbitsettest0_0 = _jmh_tryInit_f_hashsetvbitsettest0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  timeBitSetRemoveAll_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_hashsetvbitsettest0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "timeBitSetRemoveAll", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: org.apache.commons/commons-lang3

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  HashSetvBitSetTest_jmhType l_hashsetvbitsettest0_0 = _jmh_tryInit_f_hashsetvbitsettest0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  timeExtractRemoveAll_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_hashsetvbitsettest0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "timeExtractRemoveAll", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: org.apache.commons/commons-lang3

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  HashSetvBitSetTest_jmhType l_hashsetvbitsettest0_0 = _jmh_tryInit_f_hashsetvbitsettest0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  testBitSet_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_hashsetvbitsettest0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "testBitSet", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkComputePosition_jmhType l_benchmarkcomputeposition0_0 = _jmh_tryInit_f_benchmarkcomputeposition0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  computePositionWithBitShifting_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcomputeposition0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "computePositionWithBitShifting", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkComputePosition_jmhType l_benchmarkcomputeposition0_0 = _jmh_tryInit_f_benchmarkcomputeposition0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  computePositionWithFloorMod_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcomputeposition0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "computePositionWithFloorMod", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkComputePosition_jmhType l_benchmarkcomputeposition0_0 = _jmh_tryInit_f_benchmarkcomputeposition0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  computePositionWithMod_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcomputeposition0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "computePositionWithMod", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkBigIntOperators_jmhType l_benchmarkbigintoperators0_0 = _jmh_tryInit_f_benchmarkbigintoperators0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  overflowChecksDivide_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkbigintoperators0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "overflowChecksDivide", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkBigIntOperators_jmhType l_benchmarkbigintoperators0_0 = _jmh_tryInit_f_benchmarkbigintoperators0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  overflowChecksAdd_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkbigintoperators0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "overflowChecksAdd", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkBigIntOperators_jmhType l_benchmarkbigintoperators0_0 = _jmh_tryInit_f_benchmarkbigintoperators0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  overflowChecksMultiply_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkbigintoperators0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "overflowChecksMultiply", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  BenchmarkComputePosition_jmhType l_benchmarkcomputeposition0_0 = _jmh_tryInit_f_benchmarkcomputeposition0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  computePositionWithMask_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_benchmarkcomputeposition0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "computePositionWithMask", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
origin: prestodb/presto

  this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
if (threadParams.getSubgroupIndex() == 0) {
  RawResults res = new RawResults();
  PageProcessorBenchmark_jmhType l_pageprocessorbenchmark0_0 = _jmh_tryInit_f_pageprocessorbenchmark0_0(control);
  control.preSetup();
  int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
  int batchSize = iterationParams.getBatchSize();
  int opsPerInv = benchmarkParams.getOpsPerInvocation();
  columnOriented_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_pageprocessorbenchmark0_0);
  notifyControl.stopMeasurement = true;
  control.announceWarmdownReady();
  try {
    while (control.warmdownShouldWait) {
  res.allOps /= batchSize;
  res.measuredOps *= opsPerInv;
  BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
  results.add(new SampleTimeResult(ResultRole.PRIMARY, "columnOriented", buffer, benchmarkParams.getTimeUnit()));
  this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
  return results;
org.openjdk.jmh.runnerInfraControlgetDuration

Popular methods of InfraControl

  • announceWarmdownReady
  • announceWarmupReady
  • isLastIteration
  • preSetup
  • preTearDown
  • preTearDownForce
  • getParam

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • setContentView (Activity)
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now