Skip to content

Commit 39dd457

Browse files
Expand largeSerialFormat benchmark parameters and update character tokens in format definition
1 parent 5630daf commit 39dd457

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

benchmarks/src/jmh/kotlin/ParserStructureConcatBenchmark.kt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,24 @@ import java.util.concurrent.*
2121
@Fork(1)
2222
open class ParserStructureConcatBenchmark {
2323

24-
@Param("1", "2", "4", "8", "16")
24+
@Param("1", "2", "4", "8", "16", "32", "64", "128", "256", "512", "1024")
2525
var n = 0
2626

2727
@Benchmark
2828
fun largeSerialFormat(blackhole: Blackhole) {
2929
val format = LocalDateTime.Format {
3030
repeat(n) {
31-
year()
32-
char('-')
31+
char('^')
3332
monthNumber()
34-
char('-')
33+
char('&')
3534
day()
36-
char(' ')
35+
char('!')
3736
hour()
38-
char(':')
37+
char('$')
3938
minute()
40-
char(':')
39+
char('#')
4140
second()
42-
char('_')
41+
char('@')
4342
}
4443
}
4544
blackhole.consume(format)

0 commit comments

Comments
 (0)