-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve init performance by not calling posh-tabcomplete during init (#…
…14)
- Loading branch information
Showing
9 changed files
with
43 additions
and
36 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# All results | ||
|
||
file size: 14286336 | ||
file size: 14286848 | ||
## Init | ||
|
||
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `pwsh -NoProfile -File ./../profiles/ProfileBaseline.ps1` | 234.5 ± 6.0 | 226.0 | 250.7 | 1.00 | | ||
| `pwsh -NoProfile -File ./../profiles/ProfilePoshGit.ps1` | 525.4 ± 6.2 | 514.2 | 541.2 | 2.24 ± 0.06 | | ||
| `pwsh -NoProfile -File ./../profiles/ProfileTabComplete.ps1` | 295.1 ± 4.9 | 288.2 | 311.9 | 1.26 ± 0.04 | | ||
| `pwsh -NoProfile -File ./../profiles/ProfileBaseline.ps1` | 227.1 ± 4.8 | 220.2 | 240.1 | 1.00 | | ||
| `pwsh -NoProfile -File ./../profiles/ProfilePoshGit.ps1` | 534.8 ± 30.9 | 505.8 | 624.0 | 2.35 ± 0.14 | | ||
| `pwsh -NoProfile -File ./../profiles/ProfileTabComplete.ps1` | 307.8 ± 22.4 | 268.0 | 370.3 | 1.36 ± 0.10 | | ||
|
||
tabcomplete: 60ms, posh-git: 290ms (4.83x faster) | ||
posh-tabcomplete: 80ms, posh-git: 307ms (3.84x faster) | ||
## Complete | ||
|
||
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `pwsh -NoProfile -File CompleteBaseline.ps1` | 574.8 ± 9.2 | 561.8 | 599.1 | 1.00 | | ||
| `pwsh -NoProfile -File CompletePoshGit.ps1` | 761.5 ± 8.6 | 746.9 | 780.7 | 1.32 ± 0.03 | | ||
| `pwsh -NoProfile -File CompleteTabComplete.ps1` | 660.5 ± 10.5 | 647.3 | 694.2 | 1.15 ± 0.03 | | ||
| `pwsh -NoProfile -File CompleteBaseline.ps1` | 546.7 ± 7.8 | 536.8 | 574.4 | 1.00 | | ||
| `pwsh -NoProfile -File CompletePoshGit.ps1` | 724.9 ± 7.3 | 713.6 | 746.7 | 1.33 ± 0.02 | | ||
| `pwsh -NoProfile -File CompleteTabComplete.ps1` | 627.3 ± 5.4 | 617.5 | 641.5 | 1.15 ± 0.02 | | ||
|
||
tabcomplete: 85ms, posh-git: 186ms (2.19x faster) | ||
posh-tabcomplete: 80ms, posh-git: 178ms (2.22x faster) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
Invoke-Expression (&tabcomplete init | Out-String) | ||
Invoke-Expression (&posh-tabcomplete init | Out-String) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
cargo watch -i ./src/*,./resource/* -s 'cargo install --path . --debug' |
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