HomeSort by relevance Sort by last modified time
    Searched defs:benchmarkMethod (Results 1 - 8 of 8) sorted by null

  /external/caliper/caliper/src/main/java/com/google/caliper/worker/
Worker.java 39 protected final Method benchmarkMethod;
44 this.benchmarkMethod = method;
RuntimeWorker.java 25 import com.google.caliper.runner.Running.BenchmarkMethod;
105 @BenchmarkMethod Method method, Random random, Ticker ticker,
117 benchmark.getClass(), benchmarkMethod.getName(),
121 benchmarkMethod.invoke(benchmark, intReps);
131 @BenchmarkMethod Method method, Random random, Ticker ticker,
138 benchmarkMethod.invoke(benchmark, reps);
  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
ExperimentModule.java 20 import static com.google.caliper.runner.Running.BenchmarkMethod;
38 private final Method benchmarkMethod;
41 Method benchmarkMethod,
44 this.benchmarkMethod = checkNotNull(benchmarkMethod);
48 Method benchmarkMethod = experiment.instrumentation().benchmarkMethod();
50 benchmarkMethod,
57 Method benchmarkMethod = findBenchmarkMethod(benchmarkClass, spec.benchmarkSpec.methodName(),
59 benchmarkMethod.setAccessible(true)
    [all...]
AllocationInstrument.java 71 public Instrumentation createInstrumentation(Method benchmarkMethod)
73 checkNotNull(benchmarkMethod);
74 checkArgument(isBenchmarkMethod(benchmarkMethod));
76 switch (BenchmarkMethods.Type.of(benchmarkMethod)) {
78 return new MacroAllocationInstrumentation(benchmarkMethod);
81 return new MicroAllocationInstrumentation(benchmarkMethod);
87 + "a single int or long parameter: %s", benchmarkMethod.getName());
92 MicroAllocationInstrumentation(Method benchmarkMethod) {
93 super(benchmarkMethod);
101 benchmarkMethod.invoke(benchmark, 1)
    [all...]
Instrument.java 66 public abstract Instrumentation createInstrumentation(Method benchmarkMethod)
79 protected Method benchmarkMethod;
81 protected Instrumentation(Method benchmarkMethod) {
82 this.benchmarkMethod = checkNotNull(benchmarkMethod);
89 Method benchmarkMethod() {
90 return benchmarkMethod;
100 && this.benchmarkMethod.equals(that.benchmarkMethod);
107 return Objects.hashCode(Instrument.this, benchmarkMethod);
    [all...]
RuntimeInstrument.java 95 public Instrumentation createInstrumentation(Method benchmarkMethod)
97 checkNotNull(benchmarkMethod);
98 checkArgument(isBenchmarkMethod(benchmarkMethod));
99 if (isStatic(benchmarkMethod)) {
101 benchmarkMethod.getName());
104 switch (BenchmarkMethods.Type.of(benchmarkMethod)) {
106 return new MacrobenchmarkInstrumentation(benchmarkMethod);
108 return new MicrobenchmarkInstrumentation(benchmarkMethod);
110 return new PicobenchmarkInstrumentation(benchmarkMethod);
116 + "a single int or long parameter: %s", benchmarkMethod.getName())
    [all...]
  /external/caliper/caliper/src/test/java/com/google/caliper/runner/
BenchmarkClassCheckerTest.java 37 @Benchmark void benchmarkMethod() {}
RuntimeInstrumentTest.java 79 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("macrobenchmark");
80 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
81 assertEquals(benchmarkMethod, instrumentation.benchmarkMethod());
87 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("microbenchmark", int.class);
88 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
89 assertEquals(benchmarkMethod, instrumentation.benchmarkMethod());
95 Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("picobenchmark", long.class);
96 Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
    [all...]

Completed in 66 milliseconds