File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Benchmarks/Benchmarks/AttributedString Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,10 @@ let benchmarks = {
431431 blackHole ( manyAttributesString == manyAttributesString2)
432432 }
433433
434+ Benchmark ( " isIdentical " ) { benchmark in
435+ blackHole ( manyAttributesString. isIdentical ( to: manyAttributesString) )
436+ }
437+
434438 Benchmark ( " equalityDifferingCharacters " ) { benchmark in
435439 blackHole ( manyAttributesString == manyAttributesString3)
436440 }
@@ -442,7 +446,11 @@ let benchmarks = {
442446 Benchmark ( " substringEquality " ) { benchmark in
443447 blackHole ( manyAttributesSubstring == manyAttributes2Substring)
444448 }
445-
449+
450+ Benchmark ( " substringIsIdentical " ) { benchmark in
451+ blackHole ( manyAttributesSubstring. isIdentical ( to: manyAttributesSubstring) )
452+ }
453+
446454 Benchmark ( " hashAttributedString " ) { benchmark in
447455 var hasher = Hasher ( )
448456 manyAttributesString. hash ( into: & hasher)
You can’t perform that action at this time.
0 commit comments