Skip to content

Commit b5a40e6

Browse files
committed
update benchmarks
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent d4defac commit b5a40e6

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

benchmarks/src/main/java/io/prometheus/metrics/benchmarks/CounterBenchmark.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
* <pre>
2424
*
2525
* Benchmark Mode Cnt Score Error Units
26-
* CounterBenchmark.codahaleIncNoLabels thrpt 25 25761.677 ± 122.947 ops/s
27-
* CounterBenchmark.openTelemetryAdd thrpt 25 545.026 ± 33.913 ops/s
28-
* CounterBenchmark.openTelemetryInc thrpt 25 550.577 ± 45.415 ops/s
29-
* CounterBenchmark.openTelemetryIncNoLabels thrpt 25 527.638 ± 32.020 ops/s
30-
* CounterBenchmark.prometheusAdd thrpt 25 20341.474 ± 40.973 ops/s
31-
* CounterBenchmark.prometheusInc thrpt 25 26414.616 ± 96.666 ops/s
32-
* CounterBenchmark.prometheusNoLabelsInc thrpt 25 26177.676 ± 120.342 ops/s
33-
* CounterBenchmark.simpleclientAdd thrpt 25 5503.867 ± 161.313 ops/s
34-
* CounterBenchmark.simpleclientInc thrpt 25 5568.125 ± 53.291 ops/s
35-
* CounterBenchmark.simpleclientNoLabelsInc thrpt 25 5394.692 ± 130.531 ops/s
26+
* CounterBenchmark.codahaleIncNoLabels thrpt 25 21300.752 ± 3867.708 ops/s
27+
* CounterBenchmark.openTelemetryAdd thrpt 25 299.712 ± 22.742 ops/s
28+
* CounterBenchmark.openTelemetryInc thrpt 25 315.111 ± 22.887 ops/s
29+
* CounterBenchmark.openTelemetryIncNoLabels thrpt 25 350.879 ± 22.652 ops/s
30+
* CounterBenchmark.prometheusAdd thrpt 25 16192.724 ± 4284.309 ops/s
31+
* CounterBenchmark.prometheusInc thrpt 25 39449.763 ± 6379.600 ops/s
32+
* CounterBenchmark.prometheusNoLabelsInc thrpt 25 33968.719 ± 1857.390 ops/s
33+
* CounterBenchmark.simpleclientAdd thrpt 25 6002.535 ± 308.764 ops/s
34+
* CounterBenchmark.simpleclientInc thrpt 25 5726.206 ± 584.231 ops/s
35+
* CounterBenchmark.simpleclientNoLabelsInc thrpt 25 6119.148 ± 195.583 ops/s
3636
* </pre>
3737
*
3838
* Prometheus counters are faster than counters of other libraries. For example, incrementing a

benchmarks/src/main/java/io/prometheus/metrics/benchmarks/HistogramBenchmark.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
*
2222
* <pre>
2323
* Benchmark Mode Cnt Score Error Units
24-
* HistogramBenchmark.openTelemetryClassic thrpt 25 258.660 ± 6.736 ops/s
25-
* HistogramBenchmark.openTelemetryExponential thrpt 25 210.963 ± 11.288 ops/s
26-
* HistogramBenchmark.prometheusClassic thrpt 25 1528.871 ± 43.598 ops/s
27-
* HistogramBenchmark.prometheusNative thrpt 25 1282.643 ± 110.210 ops/s
28-
* HistogramBenchmark.simpleclient thrpt 25 3376.016 ± 173.545 ops/s
24+
* HistogramBenchmark.openTelemetryClassic thrpt 25 333.576 ± 17.158 ops/s
25+
* HistogramBenchmark.openTelemetryExponential thrpt 25 232.564 ± 8.653 ops/s
26+
* HistogramBenchmark.prometheusClassic thrpt 25 1650.551 ± 63.382 ops/s
27+
* HistogramBenchmark.prometheusNative thrpt 25 1295.520 ± 104.483 ops/s
28+
* HistogramBenchmark.simpleclient thrpt 25 3682.014 ± 287.201 ops/s
2929
* </pre>
3030
*
3131
* The simpleclient (i.e. client_java version 0.16.0 and older) histograms perform about the same as

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
<name>Gregor Zeitlinger</name>
4848
<email>gregor.zeitlinger@grafana.com</email>
4949
</developer>
50+
<developer>
51+
<id>dhoard</id>
52+
<name>Doug Hoard</name>
53+
<email>doug.hoard@gmail.com</email>
54+
</developer>
5055
</developers>
5156

5257
<modules>

0 commit comments

Comments
 (0)