https://kotlinlang.org logo
#javascript
Title
# javascript
g

Gerardo Rodriguez

02/06/2023, 2:01 PM
Hi everyone Do you know if the benchmark library can be used in a kotlin/js browser project?
a

Arjan van Wieringen

02/06/2023, 8:24 PM
“kotlinx.benchmark is a toolkit for running benchmarks for multiplatform code written in Kotlin and running on the following supported targets: JVM, JavaScript and Native.”
g

Gerardo Rodriguez

02/07/2023, 7:41 AM
Thanks @Arjan van Wieringen. I was asking more specifically for the Kotlin/Js “browser” type, because I saw in the documentation it was using “node”. Also in the compose web project they aren’t using it to benchmark in the browser neither. I was wondering if for browser is supported
a

Arjan van Wieringen

02/07/2023, 7:43 AM
Hmm, I think it is pretty agnostic. You could try I suppose.
g

Gerardo Rodriguez

02/07/2023, 7:49 AM
I tried but no benchmark was ran 😞