Skip to content

Commit b37b9ec

Browse files
committed
update bench
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 27df093 commit b37b9ec

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
* Results on a machine with dedicated Ubuntu 24.04 LTS, AMD Ryzen™ 9 7900 × 24, 96.0 GiB RAM:
2222
*
2323
* <pre>
24-
* Benchmark Mode Cnt Score Error Units
25-
* CounterBenchmark.codahaleIncNoLabels thrpt 57881.585 ops/s
26-
* CounterBenchmark.openTelemetryAdd thrpt 9771.577 ops/s
27-
* CounterBenchmark.openTelemetryInc thrpt 9627.961 ops/s
28-
* CounterBenchmark.openTelemetryIncNoLabels thrpt 10303.562 ops/s
29-
* CounterBenchmark.prometheusAdd thrpt 31623.420 ops/s
30-
* CounterBenchmark.prometheusInc thrpt 54090.469 ops/s
31-
* CounterBenchmark.prometheusNoLabelsInc thrpt 50913.426 ops/s
32-
* CounterBenchmark.simpleclientAdd thrpt 4564.419 ops/s
33-
* CounterBenchmark.simpleclientInc thrpt 4645.809 ops/s
34-
* CounterBenchmark.simpleclientNoLabelsInc thrpt 4581.249 ops/s
24+
* Benchmark Mode Cnt Score Error Units
25+
* CounterBenchmark.codahaleIncNoLabels thrpt 25 144632.191 ± 2778.333 ops/s
26+
* CounterBenchmark.openTelemetryAdd thrpt 25 2165.775 ± 168.554 ops/s
27+
* CounterBenchmark.openTelemetryInc thrpt 25 1940.143 ± 86.223 ops/s
28+
* CounterBenchmark.openTelemetryIncNoLabels thrpt 25 1880.089 ± 192.395 ops/s
29+
* CounterBenchmark.prometheusAdd thrpt 25 122427.789 ± 1377.485 ops/s
30+
* CounterBenchmark.prometheusInc thrpt 25 183603.131 ± 2812.874 ops/s
31+
* CounterBenchmark.prometheusNoLabelsInc thrpt 25 169733.499 ± 670.495 ops/s
32+
* CounterBenchmark.simpleclientAdd thrpt 25 13771.151 ± 77.473 ops/s
33+
* CounterBenchmark.simpleclientInc thrpt 25 14255.342 ± 117.339 ops/s
34+
* CounterBenchmark.simpleclientNoLabelsInc thrpt 25 14175.465 ± 56.575 ops/s
3535
* </pre>
3636
*
3737
* 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
* Results on a machine with dedicated Ubuntu 24.04 LTS, AMD Ryzen™ 9 7900 × 24, 96.0 GiB RAM:
2121
*
2222
* <pre>
23-
* Benchmark Mode Cnt Score Error Units
24-
* HistogramBenchmark.openTelemetryClassic thrpt 6725.610 ops/s
25-
* HistogramBenchmark.openTelemetryExponential thrpt 5280.926 ops/s
26-
* HistogramBenchmark.prometheusClassic thrpt 14286.384 ops/s
27-
* HistogramBenchmark.prometheusNative thrpt 2385.134 ops/s
28-
* HistogramBenchmark.simpleclient thrpt 4062.732 ops/s
23+
* Benchmark Mode Cnt Score Error Units
24+
* HistogramBenchmark.openTelemetryClassic thrpt 25 968.178 ± 28.582 ops/s
25+
* HistogramBenchmark.openTelemetryExponential thrpt 25 836.000 ± 17.709 ops/s
26+
* HistogramBenchmark.prometheusClassic thrpt 25 7010.393 ± 683.782 ops/s
27+
* HistogramBenchmark.prometheusNative thrpt 25 5040.572 ± 284.433 ops/s
28+
* HistogramBenchmark.simpleclient thrpt 25 10485.462 ± 41.265 ops/s
2929
* </pre>
3030
*
3131
* The simpleclient (i.e. client_java version 0.16.0 and older) histograms perform about the same as

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
* Results on a machine with dedicated Ubuntu 24.04 LTS, AMD Ryzen™ 9 7900 × 24, 96.0 GiB RAM:
2424
*
2525
* <pre>
26-
* Benchmark Mode Cnt Score Error Units
27-
* TextFormatUtilBenchmark.openMetricsWriteToByteArray thrpt 826488.303 ops/s
28-
* TextFormatUtilBenchmark.openMetricsWriteToNull thrpt 826167.112 ops/s
29-
* TextFormatUtilBenchmark.prometheusWriteToByteArray thrpt 886213.786 ops/s
30-
* TextFormatUtilBenchmark.prometheusWriteToNull thrpt 885331.328 ops/s
26+
* Benchmark Mode Cnt Score Error Units
27+
* TextFormatUtilBenchmark.openMetricsWriteToByteArray thrpt 25 826847.708 ± 10941.611 ops/s
28+
* TextFormatUtilBenchmark.openMetricsWriteToNull thrpt 25 847756.101 ± 5299.128 ops/s
29+
* TextFormatUtilBenchmark.prometheusWriteToByteArray thrpt 25 874804.601 ± 9730.060 ops/s
30+
* TextFormatUtilBenchmark.prometheusWriteToNull thrpt 25 910782.719 ± 17617.167 ops/s
3131
* </pre>
3232
*/
3333
public class TextFormatUtilBenchmark {

0 commit comments

Comments
 (0)