File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
benchmarks/src/main/java/io/prometheus/metrics/benchmarks Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1212import io .prometheus .metrics .model .snapshots .SummarySnapshot ;
1313import io .prometheus .metrics .model .snapshots .SummarySnapshot .SummaryDataPointSnapshot ;
1414import io .prometheus .metrics .model .snapshots .Unit ;
15- import java .io .ByteArrayOutputStream ;
16- import java .io .IOException ;
17- import java .io .OutputStream ;
1815import org .openjdk .jmh .annotations .Benchmark ;
1916import org .openjdk .jmh .annotations .Scope ;
2017import org .openjdk .jmh .annotations .State ;
2118
19+ import java .io .ByteArrayOutputStream ;
20+ import java .io .IOException ;
21+ import java .io .OutputStream ;
22+
23+ /**
24+ * Results on a machine with dedicated Ubuntu 24.04 LTS, AMD Ryzen™ 9 7900 × 24, 96.0 GiB RAM:
25+ *
26+ * <pre>
27+ * Benchmark Mode Cnt Score Error Units
28+ * TextFormatUtilBenchmark.openMetricsWriteToByteArray thrpt 25 846397.071 ± 8835.379 ops/s
29+ * TextFormatUtilBenchmark.openMetricsWriteToNull thrpt 25 862205.960 ± 14185.181 ops/s
30+ * TextFormatUtilBenchmark.prometheusWriteToByteArray thrpt 25 916443.104 ± 7359.549 ops/s
31+ * TextFormatUtilBenchmark.prometheusWriteToNull thrpt 25 907473.591 ± 12615.214 ops/s
32+ * </pre>
33+ */
2234public class TextFormatUtilBenchmark {
2335
2436 private static final MetricSnapshots SNAPSHOTS ;
You can’t perform that action at this time.
0 commit comments