Skip to content

Commit 2b60780

Browse files
Update benchmark/single-source/DataBenchmarks.swift
Co-Authored-By: ianpartridge <[email protected]>
1 parent 764f0cf commit 2b60780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/DataBenchmarks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public func dataFromUTF8View(_ N: Int, from string: String) {
419419
@inline(never)
420420
public func dataUsingUTF8Encoding(_ N: Int, from string: String) {
421421
for _ in 1...N {
422-
blackHole(string.data(using: .utf8))
422+
autoreleasepool { blackHole(string.data(using: .utf8)) }
423423
}
424424
}
425425

0 commit comments

Comments
 (0)