Skip to content

Commit eb7f240

Browse files
authored
(151038900) Fix URL.Template benchmark variable initialization (#1289)
1 parent ab71445 commit eb7f240

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Benchmarks/Benchmarks/URL/BenchmarkURL.swift

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -248,26 +248,26 @@ let benchmarks = {
248248
]
249249

250250
var variables: [URL.Template.VariableName: URL.Template.Value] = [
251-
"count": ["one", "two", "three"],
252-
"dom": ["example", "com"],
253-
"dub": "me/too",
254-
"hello": "Hello World!",
255-
"half": "50%",
256-
"var": "value",
257-
"who": "fred",
258-
"base": "http://example.com/home/",
259-
"path": "/foo/bar",
260-
"list": ["red", "green", "blue"],
261-
"keys": [
251+
.init("count"): ["one", "two", "three"],
252+
.init("dom"): ["example", "com"],
253+
.init("dub"): "me/too",
254+
.init("hello"): "Hello World!",
255+
.init("half"): "50%",
256+
.init("var"): "value",
257+
.init("who"): "fred",
258+
.init("base"): "http://example.com/home/",
259+
.init("path"): "/foo/bar",
260+
.init("list"): ["red", "green", "blue"],
261+
.init("keys"): [
262262
"semi": ";",
263263
"dot": ".",
264264
"comma": ",",
265265
],
266-
"v": "6",
267-
"x": "1024",
268-
"y": "768",
269-
"empty": "",
270-
"empty_keys": [:],
266+
.init("v"): "6",
267+
.init("x"): "1024",
268+
.init("y"): "768",
269+
.init("empty"): "",
270+
.init("empty_keys"): [:],
271271
]
272272

273273
Benchmark("URL-Template-expansion") { benchmark in

0 commit comments

Comments
 (0)