Skip to content

Commit ab70701

Browse files
committed
Fixing ugly spotless formatting
1 parent f75da1c commit ab70701

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

internal-api/src/jmh/java/datadog/trace/util/StringSubSequenceBenchmark.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,21 @@
88
import org.openjdk.jmh.infra.Blackhole;
99

1010
/**
11-
* Strings.substring has 5x throughput. This is primarily achieved through less allocation. NOTE:
12-
* The higher allocation rate is misleading because 5x the work was performed. After accounting for
13-
* the 5x, the actual allocation rate is 0.25x that of String.substring or String.subSequence.
11+
* Strings.substring has 5x throughput. This is primarily achieved through less allocation.
1412
*
15-
* <p>Benchmark Mode Cnt Score Error Units StringSubSequenceBenchmark.string_subSequence thrpt 6
16-
* 140369998.493 ± 4387855.861 ops/s StringSubSequenceBenchmark.string_subSequence:gc.alloc.rate
17-
* thrpt 6 88880.463 ± 2778.032 MB/sec
13+
* <p>NOTE: The higher allocation rate is misleading because 5x the work was performed. After
14+
* accounting for the 5x throughput difference, the actual allocation rate is 0.25x that of
15+
* String.substring or String.subSequence. <code>
16+
* Benchmark Mode Cnt Score Error Units
17+
* StringSubSequenceBenchmark.string_subSequence thrpt 6 140369998.493 ± 4387855.861 ops/s
18+
* StringSubSequenceBenchmark.string_subSequence:gc.alloc.rate thrpt 6 88880.463 ± 2778.032 MB/sec
1819
*
19-
* <p>StringSubSequenceBenchmark.string_substring thrpt 6 136916708.207 ± 12299226.575 ops/s
20-
* StringSubSequenceBenchmark.string_substring:gc.alloc.rate thrpt 6 86689.852 ± 7777.642 MB/sec
20+
* StringSubSequenceBenchmark.string_substring thrpt 6 136916708.207 ± 12299226.575 ops/s
21+
* StringSubSequenceBenchmark.string_substring:gc.alloc.rate thrpt 6 86689.852 ± 7777.642 MB/sec
2122
*
22-
* <p>StringSubSequenceBenchmark.strings_substring thrpt 6 679669385.260 ± 7194043.619 ops/s
23-
* StringSubSequenceBenchmark.strings_substring:gc.alloc.rate thrpt 6 103702.745 ± 1095.741 MB/sec
23+
* StringSubSequenceBenchmark.strings_substring thrpt 6 679669385.260 ± 7194043.619 ops/s
24+
* StringSubSequenceBenchmark.strings_substring:gc.alloc.rate thrpt 6 103702.745 ± 1095.741 MB/sec
25+
* </code>
2426
*/
2527
@Fork(2)
2628
@Warmup(iterations = 2)

0 commit comments

Comments
 (0)