File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
examples/kotlin-multiplatform Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.konan.target.HostManager
2
2
import org.jetbrains.kotlin.konan.target.KonanTarget
3
+ import kotlinx.benchmark.gradle.JsBenchmarksExecutor
3
4
4
5
plugins {
5
6
id ' org.jetbrains.kotlin.multiplatform'
@@ -16,6 +17,7 @@ kotlin {
16
17
jvm()
17
18
js(' jsIr' , IR ) { nodejs() }
18
19
js { nodejs() }
20
+ js(' jsIrBuiltIn' , IR ) { nodejs() }
19
21
wasm { d8() }
20
22
if (HostManager . host == KonanTarget . MACOS_X64 . INSTANCE ) macosX64(' native' )
21
23
if (HostManager . host == KonanTarget . MACOS_ARM64 . INSTANCE ) macosArm64(' native' )
@@ -57,6 +59,7 @@ benchmark {
57
59
iterationTime = 300
58
60
iterationTimeUnit = " ms"
59
61
advanced(" jvmForks" , 3 )
62
+ advanced(" jsUseBridge" , true )
60
63
}
61
64
62
65
params {
@@ -104,8 +107,10 @@ benchmark {
104
107
}
105
108
register(" jsIr" )
106
109
register(" js" )
110
+ register(" jsIrBuiltIn" ) {
111
+ jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
112
+ }
107
113
register(" wasm" )
108
114
register(" native" )
109
115
}
110
- }
111
-
116
+ }
You can’t perform that action at this time.
0 commit comments