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 = {
431
431
blackHole ( manyAttributesString == manyAttributesString2)
432
432
}
433
433
434
+ Benchmark ( " isIdentical " ) { benchmark in
435
+ blackHole ( manyAttributesString. isIdentical ( to: manyAttributesString) )
436
+ }
437
+
434
438
Benchmark ( " equalityDifferingCharacters " ) { benchmark in
435
439
blackHole ( manyAttributesString == manyAttributesString3)
436
440
}
@@ -442,7 +446,11 @@ let benchmarks = {
442
446
Benchmark ( " substringEquality " ) { benchmark in
443
447
blackHole ( manyAttributesSubstring == manyAttributes2Substring)
444
448
}
445
-
449
+
450
+ Benchmark ( " substringIsIdentical " ) { benchmark in
451
+ blackHole ( manyAttributesSubstring. isIdentical ( to: manyAttributesSubstring) )
452
+ }
453
+
446
454
Benchmark ( " hashAttributedString " ) { benchmark in
447
455
var hasher = Hasher ( )
448
456
manyAttributesString. hash ( into: & hasher)
You can’t perform that action at this time.
0 commit comments