<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTPerformanceMeasurement/Polarity-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@E@XCTPerformanceMeasurementPolarity"
  },
  "title" : "XCTPerformanceMeasurement.Polarity"
}
-->

# XCTPerformanceMeasurement.Polarity

Constants that state whether larger or smaller measurements, relative to a set baseline, indicate better performance.

```
enum Polarity
```

## Topics

### Polarity Types

[`case prefersLarger`](/documentation/XCTest/XCTPerformanceMeasurement/Polarity-swift.enum/prefersLarger)

A performance measurement where a larger value, relative to a set baseline, indicates better performance.

[`case prefersSmaller`](/documentation/XCTest/XCTPerformanceMeasurement/Polarity-swift.enum/prefersSmaller)

A performance measurement where a smaller value, relative to a set baseline, indicates better performance.

[`case unspecified`](/documentation/XCTest/XCTPerformanceMeasurement/Polarity-swift.enum/unspecified)

A performance measurement that doesn’t specify whether a larger or smaller value, relative to a set baseline, indicates better performance.

### Initializers

[`init?(rawValue: Int)`](/documentation/XCTest/XCTPerformanceMeasurement/Polarity-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)