Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ public class SummaryBenchmark {

io.prometheus.client.metrics.Summary prometheusSummary;
io.prometheus.client.metrics.Summary.Child prometheusSummaryChild;

io.prometheus.client.Summary prometheusSimpleSummary;
io.prometheus.client.Summary.Child prometheusSimpleSummaryChild;
io.prometheus.client.Summary prometheusSimpleSummaryNoLabels;
io.prometheus.client.Summary prometheusSimpleSummaryQuantiles;
io.prometheus.client.Summary.Child prometheusSimpleSummaryQuantilesChild;
io.prometheus.client.Summary prometheusSimpleSummaryQuantilesNoLabels;

io.prometheus.client.Histogram prometheusSimpleHistogram;
io.prometheus.client.Histogram.Child prometheusSimpleHistogramChild;
io.prometheus.client.Histogram prometheusSimpleHistogramNoLabels;
Expand All @@ -49,10 +54,25 @@ public void setup() {
.help("some description..")
.create();

prometheusSimpleSummaryQuantiles = io.prometheus.client.Summary.build()
.name("name")
.help("some description..")
.labelNames("some", "group")
.quantile(0.5).quantile(0.9).quantile(0.95).quantile(0.99)
.create();
prometheusSimpleSummaryQuantilesChild = prometheusSimpleSummaryQuantiles.labels("test", "group");

prometheusSimpleSummaryQuantilesNoLabels = io.prometheus.client.Summary.build()
.name("name")
.help("some description..")
.quantile(0.5).quantile(0.9).quantile(0.95).quantile(0.99)
.create();

prometheusSimpleHistogram = io.prometheus.client.Histogram.build()
.name("name")
.help("some description..")
.labelNames("some", "group").create();
.labelNames("some", "group")
.create();
prometheusSimpleHistogramChild = prometheusSimpleHistogram.labels("test", "group");

prometheusSimpleHistogramNoLabels = io.prometheus.client.Histogram.build()
Expand Down Expand Up @@ -99,6 +119,27 @@ public void prometheusSimpleSummaryNoLabelsBenchmark() {
prometheusSimpleSummaryNoLabels.observe(1);
}

@Benchmark
@BenchmarkMode({Mode.AverageTime})
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public void prometheusSimpleSummaryQuantilesBenchmark() {
prometheusSimpleSummaryQuantiles.labels("test", "group").observe(1);
}

@Benchmark
@BenchmarkMode({Mode.AverageTime})
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public void prometheusSimpleSummaryQuantilesChildBenchmark() {
prometheusSimpleSummaryQuantilesChild.observe(1);
}

@Benchmark
@BenchmarkMode({Mode.AverageTime})
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public void prometheusSimpleSummaryQuantilesNoLabelsBenchmark() {
prometheusSimpleSummaryQuantilesNoLabels.observe(1);
}

@Benchmark
@BenchmarkMode({Mode.AverageTime})
@OutputTimeUnit(TimeUnit.NANOSECONDS)
Expand Down
293 changes: 0 additions & 293 deletions simpleclient/src/main/java/io/prometheus/client/CKMSQuantiles.java

This file was deleted.

Loading