Skip to content

Commit 8ad2736

Browse files
committed
add benchmark
Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 93767b5 commit 8ad2736

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,27 @@
2020
* Benchmarks for writing a classic histogram (10 label combinations × 12 buckets) to text formats.
2121
*
2222
* <pre>
23-
* Benchmark Mode Cnt Score Error Units
24-
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray thrpt
25-
* HistogramTextFormatBenchmark.openMetricsWriteToNull thrpt
26-
* HistogramTextFormatBenchmark.prometheusWriteToByteArray thrpt
27-
* HistogramTextFormatBenchmark.prometheusWriteToNull thrpt
23+
* Benchmark Mode Cnt Score Error Units
24+
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray thrpt 3 37567.116 ± 14566.571 ops/s
25+
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray:gc.alloc.rate thrpt 3 1466.289 ± 568.584 MB/sec
26+
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray:gc.alloc.rate.norm thrpt 3 40928.019 ± 0.006 B/op
27+
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray:gc.count thrpt 3 147.000 counts
28+
* HistogramTextFormatBenchmark.openMetricsWriteToByteArray:gc.time thrpt 3 77.000 ms
29+
* HistogramTextFormatBenchmark.openMetricsWriteToNull thrpt 3 36179.016 ± 1149.646 ops/s
30+
* HistogramTextFormatBenchmark.openMetricsWriteToNull:gc.alloc.rate thrpt 3 1412.112 ± 44.791 MB/sec
31+
* HistogramTextFormatBenchmark.openMetricsWriteToNull:gc.alloc.rate.norm thrpt 3 40928.019 ± 0.001 B/op
32+
* HistogramTextFormatBenchmark.openMetricsWriteToNull:gc.count thrpt 3 142.000 counts
33+
* HistogramTextFormatBenchmark.openMetricsWriteToNull:gc.time thrpt 3 74.000 ms
34+
* HistogramTextFormatBenchmark.prometheusWriteToByteArray thrpt 3 36616.472 ± 5189.952 ops/s
35+
* HistogramTextFormatBenchmark.prometheusWriteToByteArray:gc.alloc.rate thrpt 3 1434.773 ± 203.524 MB/sec
36+
* HistogramTextFormatBenchmark.prometheusWriteToByteArray:gc.alloc.rate.norm thrpt 3 41088.019 ± 0.003 B/op
37+
* HistogramTextFormatBenchmark.prometheusWriteToByteArray:gc.count thrpt 3 144.000 counts
38+
* HistogramTextFormatBenchmark.prometheusWriteToByteArray:gc.time thrpt 3 73.000 ms
39+
* HistogramTextFormatBenchmark.prometheusWriteToNull thrpt 3 36357.284 ± 4298.616 ops/s
40+
* HistogramTextFormatBenchmark.prometheusWriteToNull:gc.alloc.rate thrpt 3 1424.614 ± 168.607 MB/sec
41+
* HistogramTextFormatBenchmark.prometheusWriteToNull:gc.alloc.rate.norm thrpt 3 41088.019 ± 0.003 B/op
42+
* HistogramTextFormatBenchmark.prometheusWriteToNull:gc.count thrpt 3 143.000 counts
43+
* HistogramTextFormatBenchmark.prometheusWriteToNull:gc.time thrpt 3 73.000 ms
2844
* </pre>
2945
*/
3046
public class HistogramTextFormatBenchmark {

0 commit comments

Comments
 (0)