|
8 | 8 | import org.openjdk.jmh.infra.Blackhole; |
9 | 9 |
|
10 | 10 | /** |
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. |
14 | 12 | * |
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 |
18 | 19 | * |
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 |
21 | 22 | * |
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> |
24 | 26 | */ |
25 | 27 | @Fork(2) |
26 | 28 | @Warmup(iterations = 2) |
|
0 commit comments