Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance tests time taken is wrong #36

Open
dlednik opened this issue Nov 27, 2014 · 0 comments
Open

Performance tests time taken is wrong #36

dlednik opened this issue Nov 27, 2014 · 0 comments

Comments

@dlednik
Copy link

dlednik commented Nov 27, 2014

In this case it's a benchmark test.

It should report that it took 0.316s
not 3.607 for the whole test

where 0.316 seconds is the average time for 10 passes
this is a feature of the new XCTest framework with

measureBlock{ () -> Void in
}

Results output:

Test Case '-[RTiOSSDK_UnitTestsTests.GeometryEnginePerformanceTests testBenchmarkWithinOnSmallPolygon]' started.
<unknown>:0: Test Case '-[RTiOSSDK_UnitTestsTests.GeometryEnginePerformanceTests testBenchmarkWithinOnSmallPolygon]' measured [Time, seconds] average: 0.316, relative standard deviation: 0.759%, values: [0.320914, 0.317904, 0.316536, 0.314073, 0.318229, 0.313852, 0.313627, 0.319198, 0.314853, 0.315057], performanceMetricID:com.apple.XCTPerformanceMetric_WallClockTime, baselineName: "", baselineAverage: , maxPercentRegression: 10.000%, maxPercentRelativeStandardDeviation: 10.000%, maxRegression: 0.100, maxStandardDeviation: 0.100
Test Case '-[RTiOSSDK_UnitTestsTests.GeometryEnginePerformanceTests testBenchmarkWithinOnSmallPolygon]' passed (3.607 seconds).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant