Benchmark Test Setup performance along with Test Methods in order to improve the run time of your test classes by using ApexTestResult and ApexTestRunResult objects. ApexTestResult rows are now generated for Apex tests run with the @testSetup annotation. A new IsTestSetup column is set to true for these annotated tests to distinguish them from other test methods and a new TestSetupTime column to track the cumulative time of all setup methods for the given ApexTestRunResult.
Previously: Information about Apex test methods with @testSetup annotation limits and cumulative run time was available only by parsing the appropriate method sections in the debug log
How: After the tests are executed, run the following query to get the results of an Apex test method execution
SELECT ID, AsyncApexJobId, IsTestSetup, MethodName, Outcome, RunTime FROM ApexTestResult

To get a summary information about all the test methods that were run in a particular Apex job, run the following query
SELECT ID, AsyncApexJobId, JobName, Status, TestSetupTime, TestTime FROM ApexTestRunResult
