https://kotlinlang.org logo
#android
Title
# android
l

Lilly

10/08/2023, 2:19 PM
Hi I have a general android/kotlin question: I would like to "benchmark" some code, e.g. library function vs. built-in function...which is faster. I'm wondering how to setup such comparison tests. I'm aware of 2 options: 1. Kotlin playground -> inconvenient 2. write a test Is there a more convenient solution?
l

Landry Norris

10/08/2023, 11:07 PM
Have you tried kotlinx.benchmark?
1
l

Lilly

10/09/2023, 3:32 PM
@Landry Norris I'm currently looking into it. Do you use it?
2 Views