Skip to content

Commit 4f23442

Browse files
authored
Merge pull request #19818 from eeckstein/fix-string-conversion-bm
benchmarks: fix NSStringConversion benchmark
2 parents b507fa2 + af71a1b commit 4f23442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/NSStringConversion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public func run_NSStringConversion(_ N: Int) {
2323
#if _runtime(_ObjC)
2424
let test:NSString = NSString(cString: "test", encoding: String.Encoding.ascii.rawValue)!
2525
for _ in 1...N * 10000 {
26-
_ = test as String
26+
blackHole(identity(test) as String)
2727
}
2828
#endif
2929
}

0 commit comments

Comments
 (0)