diff --git a/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/CounterBenchmark.java b/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/CounterBenchmark.java index 8ccf6a40d..7e59b42b7 100644 --- a/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/CounterBenchmark.java +++ b/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/CounterBenchmark.java @@ -23,16 +23,16 @@ *
* * Benchmark Mode Cnt Score Error Units - * CounterBenchmark.codahaleIncNoLabels thrpt 25 25761.677 ± 122.947 ops/s - * CounterBenchmark.openTelemetryAdd thrpt 25 545.026 ± 33.913 ops/s - * CounterBenchmark.openTelemetryInc thrpt 25 550.577 ± 45.415 ops/s - * CounterBenchmark.openTelemetryIncNoLabels thrpt 25 527.638 ± 32.020 ops/s - * CounterBenchmark.prometheusAdd thrpt 25 20341.474 ± 40.973 ops/s - * CounterBenchmark.prometheusInc thrpt 25 26414.616 ± 96.666 ops/s - * CounterBenchmark.prometheusNoLabelsInc thrpt 25 26177.676 ± 120.342 ops/s - * CounterBenchmark.simpleclientAdd thrpt 25 5503.867 ± 161.313 ops/s - * CounterBenchmark.simpleclientInc thrpt 25 5568.125 ± 53.291 ops/s - * CounterBenchmark.simpleclientNoLabelsInc thrpt 25 5394.692 ± 130.531 ops/s + * CounterBenchmark.codahaleIncNoLabels thrpt 25 21300.752 ± 3867.708 ops/s + * CounterBenchmark.openTelemetryAdd thrpt 25 299.712 ± 22.742 ops/s + * CounterBenchmark.openTelemetryInc thrpt 25 315.111 ± 22.887 ops/s + * CounterBenchmark.openTelemetryIncNoLabels thrpt 25 350.879 ± 22.652 ops/s + * CounterBenchmark.prometheusAdd thrpt 25 16192.724 ± 4284.309 ops/s + * CounterBenchmark.prometheusInc thrpt 25 39449.763 ± 6379.600 ops/s + * CounterBenchmark.prometheusNoLabelsInc thrpt 25 33968.719 ± 1857.390 ops/s + * CounterBenchmark.simpleclientAdd thrpt 25 6002.535 ± 308.764 ops/s + * CounterBenchmark.simpleclientInc thrpt 25 5726.206 ± 584.231 ops/s + * CounterBenchmark.simpleclientNoLabelsInc thrpt 25 6119.148 ± 195.583 ops/s ** * Prometheus counters are faster than counters of other libraries. For example, incrementing a diff --git a/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramBenchmark.java b/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramBenchmark.java index 1bebec573..f287d4f2b 100644 --- a/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramBenchmark.java +++ b/benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramBenchmark.java @@ -21,11 +21,11 @@ * *
* Benchmark Mode Cnt Score Error Units - * HistogramBenchmark.openTelemetryClassic thrpt 25 258.660 ± 6.736 ops/s - * HistogramBenchmark.openTelemetryExponential thrpt 25 210.963 ± 11.288 ops/s - * HistogramBenchmark.prometheusClassic thrpt 25 1528.871 ± 43.598 ops/s - * HistogramBenchmark.prometheusNative thrpt 25 1282.643 ± 110.210 ops/s - * HistogramBenchmark.simpleclient thrpt 25 3376.016 ± 173.545 ops/s + * HistogramBenchmark.openTelemetryClassic thrpt 25 333.576 ± 17.158 ops/s + * HistogramBenchmark.openTelemetryExponential thrpt 25 232.564 ± 8.653 ops/s + * HistogramBenchmark.prometheusClassic thrpt 25 1650.551 ± 63.382 ops/s + * HistogramBenchmark.prometheusNative thrpt 25 1295.520 ± 104.483 ops/s + * HistogramBenchmark.simpleclient thrpt 25 3682.014 ± 287.201 ops/s ** * The simpleclient (i.e. client_java version 0.16.0 and older) histograms perform about the same as diff --git a/pom.xml b/pom.xml index 3105a1b22..64435da3f 100644 --- a/pom.xml +++ b/pom.xml @@ -47,6 +47,11 @@