-
Notifications
You must be signed in to change notification settings - Fork 331
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 scripts fix. #1105
Merged
Merged
Performance scripts fix. #1105
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e49bf1b
Performance scripts fix.
navin22 2ece627
Adding perfomance tests and other tests to TestAssets.sln so that the…
navin22 4ee57cd
Removing extra space.
navin22 a26e846
Changing the target frameworks for test assests.
navin22 e6f251e
Merge branch 'master' into perfautofix
navin22 28d6f56
Merge branch 'master' into perfautofix
navin22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,8 +209,8 @@ function Measure-DiscoveryTime($commandtorun, $payload) | |
{ | ||
Write-Log "Discovering Tests in $($payload.containerPath) using $($payload.currentRunner)" | ||
$result = Get-TimeTaken $commandtorun | ||
$result.Action = "Discovery" | ||
$result.Goal = $payload.discoverygoal[$payload.runners.IndexOf($payload.currentRunner)] | ||
$result.Action = "Discovery" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: please clean up the extra spaces There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
$result.Goal = $payload.discoverygoal[$payload.runners.IndexOf("`"$($payload.currentRunner)`"")] | ||
Set-CommonProperties $result $payload | ||
$Script:TPT_Results.Add($result) > $null | ||
} | ||
|
@@ -223,7 +223,7 @@ function Measure-ExecutionTime($commandtorun, $payload) | |
Write-Log "Executing Tests in $($payload.containerPath) using $($payload.currentRunner)" | ||
$result = Get-TimeTaken $commandtorun | ||
$result.Action = "Execution" | ||
$result.Goal = $payload.executiongoal[$payload.runners.IndexOf($payload.currentRunner)] | ||
$result.Goal = $payload.executiongoal[$payload.runners.IndexOf("`"$($payload.currentRunner)`"")] | ||
Set-CommonProperties $result $payload | ||
$Script:TPT_Results.Add($result) > $null | ||
} | ||
|
@@ -310,7 +310,7 @@ function Invoke-PerformanceTests | |
$payload.currentAdapter = $adapter | ||
|
||
Measure-DiscoveryTime {&$runnerPath $testContainer --listtests --testadapterpath:$testAdapterPath} $payload | ||
Measure-ExecutionTime {&$runnerPath $testContainer --listtests} $payload | ||
Measure-ExecutionTime {&$runnerPath $testContainer --testadapterpath:$testAdapterPath} $payload | ||
} | ||
elseif($runner -eq "nunit.consolerunner") | ||
{ | ||
|
@@ -364,7 +364,7 @@ function Invoke-DisplayResults | |
$Script:TPT_Results | Where-Object {$_.Action -like "Discovery"} | Format-Table 'Runner', 'Adapter', 'Action', 'ElapsedTime', 'Goal', 'Delta', 'Status', 'PayLoad', 'RunnerVersion', 'AdapterVersion' -AutoSize | ||
} | ||
|
||
if($DefaultAction -eq "Both" -or $DefaultAction -eq "Discovery") | ||
if($DefaultAction -eq "Both" -or $DefaultAction -eq "Execution") | ||
{ | ||
$Script:TPT_Results | Where-Object {$_.Action -like "Execution"} | Format-Table 'Runner', 'Adapter', 'Action', 'ElapsedTime', 'Goal', 'Delta', 'Status', 'PayLoad', 'RunnerVersion', 'AdapterVersion' -AutoSize | ||
} | ||
|
@@ -379,6 +379,14 @@ function Invoke-DisplayResults | |
} | ||
|
||
Get-PerfConfigurations | ||
Invoke-InstallBenchmarkModule | ||
|
||
if (-not (Get-Module -Name "Benchmark")) { | ||
Invoke-InstallBenchmarkModule | ||
} | ||
else | ||
{ | ||
Write-Log "Benchmark module is already installed" | ||
} | ||
|
||
Invoke-PerformanceTests | ||
Invoke-DisplayResults |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add these into a separate solution please? (only PerfTestProjects)
I started the work here: #1039, but it's not fully complete. Can give an idea though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added an Extra solution called
TestAssets.sln
& added most of the perf projects to it. Please take a look.