Skip to content

Commit 725892d

Browse files
committed
Update kx-benchmarks to the community/dev version
1 parent 0e17afa commit 725892d

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed
20.5 KB
Binary file not shown.
3.4 KB
Binary file not shown.
4.72 KB
Binary file not shown.
4.27 KB
Binary file not shown.

src/commonMain/kotlin/microBenchmarks/LinkedListWithAtomicsBenchmark.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ class LinkedListWithAtomicsBenchmark {
9292
}
9393

9494
@Benchmark
95-
tailrec fun ensureNext(current: ChunkBuffer = list.head): ChunkBuffer? {
95+
fun ensureNext(): ChunkBuffer? =
96+
ensureNext(list.head)
97+
98+
private tailrec fun ensureNext(current: ChunkBuffer): ChunkBuffer? {
9699
return when (val next = current.next) {
97100
null -> null
98101
else -> {

0 commit comments

Comments
 (0)