Skip to content

Commit 8c7f71e

Browse files
Add a benchmark for property access using dynamic member lookup
1 parent 2bb0694 commit 8c7f71e

File tree

1 file changed

+8
-0
lines changed
  • IntegrationTests/TestSuites/Sources/BenchmarkTests

1 file changed

+8
-0
lines changed

IntegrationTests/TestSuites/Sources/BenchmarkTests/main.swift

+8
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,11 @@ objectHeap.testSuite("Increment and decrement RC") { n in
8383
_ = global.objectHeapDummy
8484
}
8585
}
86+
87+
let propertyAccess = Benchmark("Property access")
88+
89+
propertyAccess.testSuite("Dynamic member lookup") { n in
90+
for _ in 0 ..< n {
91+
_ = global.jsNumber
92+
}
93+
}

0 commit comments

Comments
 (0)