Skip to content

Commit

Permalink
Add a benchmark for property access using dynamic member lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Jun 11, 2024
1 parent 2bb0694 commit 8c7f71e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions IntegrationTests/TestSuites/Sources/BenchmarkTests/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,11 @@ objectHeap.testSuite("Increment and decrement RC") { n in
_ = global.objectHeapDummy
}
}

let propertyAccess = Benchmark("Property access")

propertyAccess.testSuite("Dynamic member lookup") { n in
for _ in 0 ..< n {
_ = global.jsNumber
}
}

0 comments on commit 8c7f71e

Please sign in to comment.