Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add a benchmark for property access using dynamic member lookup
  • Loading branch information
kateinoigakukun committed Jun 11, 2024
commit 8c7f71e2ac12f4681447ebb77fe3af237150e541
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
}
}