<!--
{
  "availability" : [

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

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

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

```
init(identifier: String, displayName: String, doubleValue: Double, unitSymbol: String)
```

## 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.

---

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)