<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTPerformanceMeasurement/init(identifier:displayName:doubleValue:unitSymbol:polarity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTPerformanceMeasurement(im)initWithIdentifier:displayName:doubleValue:unitSymbol:polarity:"
  },
  "title" : "init(identifier:displayName:doubleValue:unitSymbol:polarity:)"
}
-->

# init(identifier:displayName:doubleValue:unitSymbol:polarity:)

Initializes a performance measurement for a single iteration with the value, unit of measurement, and polarity.

```
convenience init(identifier: String, displayName: String, doubleValue: Double, unitSymbol: String, polarity: XCTPerformanceMeasurement.Polarity)
```

## Parameters

`identifier`

A unique identifier for the measurement.

`displayName`

A human-readable name for the measurement.

`doubleValue`

A value for the measurement.

`unitSymbol`

A string that represents the unit of measurement, such as seconds.

`polarity`

A value that states whether larger or smaller measurements, relative to a set baseline, indicate better performance.

---

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)