Skip to content

Commit

Permalink
Benchmark: Add MMIOMacros.wasm to the benchmark suite
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 27, 2024
1 parent 70179be commit c885410
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
38 changes: 37 additions & 1 deletion Benchmarks/Benchmarks/MacroPlugin/MacroPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,45 @@ let benchmarks = {
}
}
}
""",
"MMIOMacros.wasm": """
{
"expandAttachedMacro": {
"attributeSyntax": {
"kind": "attribute",
"location": {
"column": 12,
"fileID": "MMIOMacrosExample/main.swift",
"fileName": "swift-mmio/Sources/MMIOMacrosExample/main.swift",
"line": 1,
"offset": 11
},
"source": "\n@RegisterBlock "
},
"declSyntax": {
"kind": "declaration",
"location": {
"column": 12,
"fileID": "MMIOMacrosExample/main.swift",
"fileName": "swift-mmio/Sources/MMIOMacrosExample/main.swift",
"line": 1,
"offset": 11
},
"source": "\n@RegisterBlock struct Example0 {}"
},
"discriminator": "$s17MMIOMacrosExample8Example013RegisterBlockfMm_",
"lexicalContext": [],
"macro": {
"moduleName": "MMIOMacros",
"name": "RegisterBlock ",
"typeName": "RegisterBlockMacro"
},
"macroRole": "member"
}
}
"""
]

for file in try! FileManager.default.contentsOfDirectory(
atPath: macrosDir.string
) {
Expand Down
2 changes: 1 addition & 1 deletion Vendor/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"swift-stringify-macro.wasm": {
"repository": "https://github.com/kateinoigakukun/swift-stringify-macro.wasm.git",
"revision": "93c35d1e00ece83a69ee7f318589c8b98b95adf5",
"revision": "576ef7ff3b9713d75519eab0cb1f2b738220b636",
"categories": ["benchmark"]
},
"coremark": {
Expand Down

0 comments on commit c885410

Please sign in to comment.