title: How to make a performance test fail if it's too slow?
body: <p>I'd like my test to fail if it runs slower than 0.5 seconds but the average time is merely printed in the console and I cannot find a way to access it. Is there a way to access this data?</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>//Measures the time it takes to parse the participant codes from the first 100 events in our test data.
  func testParticipantCodeParsingPerformance()
  {
      var increment = 0
      self.measureBlock
      {
          increment = 0
          while increment &lt; 100
          {
              Parser.parseParticipantCode(self.fields[increment], hostCodes: MasterCalendarArray.getHostCodeArray()[increment])
              increment++
          }
      }
      print("Events measured: \(increment)")
  }
  </code></pre>
  
  <p><strong>Test Data</strong></p>
  
  <blockquote>
    <p>[Tests.ParserTest testParticipantCodeParsingPerformance]' measured [Time, seconds] average: 0.203, relative standard deviation: 19.951%, values: [0.186405, 0.182292, 0.179966, 0.177797, 0.175820, 0.205763, 0.315636, 0.223014, 0.200362, 0.178165]</p>
  </blockquote>