Lines Matching full:benchmark
20 import com.google.caliper.Benchmark;
30 * We begin the Caliper tutorial with the simplest benchmark you can write.
35 * - We write a class that extends com.google.caliper.Benchmark.
48 * Benchmark ns
53 @Benchmark void timeNanoTime(int reps) {
68 * Benchmark ns
74 @Benchmark void timeNanoTime(int reps) {
79 @Benchmark void timeCurrentTimeMillis(int reps) {
94 @Benchmark void timeArrayIteration_BAD(int reps) {
102 * Caliper reported that the benchmark above ran in 4 nanoseconds.
108 * It is very important to sanity-check benchmark results with common sense!
130 @Benchmark int timeArrayIteration_fixed(int reps) {
143 * don't want to have to cut and paste the whole benchmark just to provide a
146 * When you run this benchmark the same way you ran the previous ones, you'll
147 * now get an error: "No values provided for benchmark parameter 'size'".
154 * Benchmark size ns
158 * Now that we've parameterized our benchmark, things are starting to get fun.
161 * Benchmark size ns
178 @Benchmark int timeArrayIteration(int reps) {