Skip to content

Commit c885410

Browse files
Benchmark: Add MMIOMacros.wasm to the benchmark suite
1 parent 70179be commit c885410

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

Benchmarks/Benchmarks/MacroPlugin/MacroPlugin.swift

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,45 @@ let benchmarks = {
102102
}
103103
}
104104
}
105+
""",
106+
"MMIOMacros.wasm": """
107+
{
108+
"expandAttachedMacro": {
109+
"attributeSyntax": {
110+
"kind": "attribute",
111+
"location": {
112+
"column": 12,
113+
"fileID": "MMIOMacrosExample/main.swift",
114+
"fileName": "swift-mmio/Sources/MMIOMacrosExample/main.swift",
115+
"line": 1,
116+
"offset": 11
117+
},
118+
"source": "\n@RegisterBlock "
119+
},
120+
"declSyntax": {
121+
"kind": "declaration",
122+
"location": {
123+
"column": 12,
124+
"fileID": "MMIOMacrosExample/main.swift",
125+
"fileName": "swift-mmio/Sources/MMIOMacrosExample/main.swift",
126+
"line": 1,
127+
"offset": 11
128+
},
129+
"source": "\n@RegisterBlock struct Example0 {}"
130+
},
131+
"discriminator": "$s17MMIOMacrosExample8Example013RegisterBlockfMm_",
132+
"lexicalContext": [],
133+
"macro": {
134+
"moduleName": "MMIOMacros",
135+
"name": "RegisterBlock ",
136+
"typeName": "RegisterBlockMacro"
137+
},
138+
"macroRole": "member"
139+
}
140+
}
105141
"""
106142
]
107-
143+
108144
for file in try! FileManager.default.contentsOfDirectory(
109145
atPath: macrosDir.string
110146
) {

Vendor/dependencies.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"swift-stringify-macro.wasm": {
2828
"repository": "https://github.com/kateinoigakukun/swift-stringify-macro.wasm.git",
29-
"revision": "93c35d1e00ece83a69ee7f318589c8b98b95adf5",
29+
"revision": "576ef7ff3b9713d75519eab0cb1f2b738220b636",
3030
"categories": ["benchmark"]
3131
},
3232
"coremark": {

0 commit comments

Comments
 (0)