mirror of
https://github.com/apple/swift-http-types
synced 2026-11-29 05:14:22 +00:00
Added benchmark
This commit is contained in:
1 parent
dfefea8004
commit
363f7aee95
3 files changed
+51
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import HTTPTypes
|
||||
import Benchmark
|
||||
|
||||
let benchmarks = {
|
||||
Benchmark(
|
||||
"Initialize HTTPFields from Dictionary Literal"
|
||||
) { benchmark in
|
||||
let fiels: HTTPFields = [
|
||||
.contentType: "application/json",
|
||||
.contentLength: "42",
|
||||
.connection: "keep-alive",
|
||||
.accept: "application/json",
|
||||
.acceptEncoding: "gzip, deflate, br",
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user