Skip to content

Commit

Permalink
Update native benchmarks measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Aug 1, 2022
1 parent f01a3ff commit 867522f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions tests/native-benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
kotlin {
configureAppleTargets("macosX64", "macosArm64")

enableNewMemoryManager()

sourceSets {
val commonMain by getting {
dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.apollographql.apollo3.mockserver.enqueue
import com.apollographql.apollo3.testing.runTest
import okio.FileSystem
import okio.Path.Companion.toPath
import kotlin.native.concurrent.ThreadLocal
import kotlin.test.AfterClass
import kotlin.test.Ignore
import kotlin.test.Test
Expand Down Expand Up @@ -88,7 +87,6 @@ class BenchmarksTest {
val durations: List<Duration>,
)

@ThreadLocal
companion object {
private const val EXECUTION_PER_MEASUREMENT = 200
private const val MEASUREMENT_COUNT = 10
Expand Down
8 changes: 4 additions & 4 deletions tests/native-benchmarks/src/measurements
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Simple query:
Durations: [342.312959ms, 308.982208ms, 322.151416ms, 306.367167ms, 319.732667ms, 352.369042ms, 314.653208ms, 332.925667ms, 362.025542ms, 353.465958ms]:
Average: 331ms
Durations: [281.304167ms, 232.049042ms, 231.062500ms, 232.394292ms, 258.923500ms, 223.931625ms, 239.802ms, 245.718ms, 255.237041ms, 237.190250ms]:
Average: 243.3ms

Simple query with memory cache:
Durations: [65.923042ms, 68.654458ms, 62.262584ms, 63.775458ms, 66.708416ms, 63.263458ms, 63.400750ms, 65.455667ms, 65.873875ms, 63.132625ms]:
Average: 64.3ms
Durations: [40.302625ms, 33.012208ms, 32.747917ms, 32.687ms, 33.053958ms, 32.804416ms, 47.632750ms, 32.844042ms, 32.464750ms, 32.714042ms]:
Average: 34.5ms

0 comments on commit 867522f

Please sign in to comment.