posh-tabcomplete 0.5.0

Blazing fast tab completion for powershell.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function GetMs {
    param ([string] $csv, [string] $baselineFile, [string] $profileFile)
    $baselineEntry = Import-Csv $csv | Where-Object { $_.command.Contains($baselineFile) } | Select-Object -First 1
    $entry = Import-Csv $csv | Where-Object { $_.command.Contains($profileFile) } | Select-Object -First 1
    $seconds = $entry.median - $baselineEntry.median
    return [math]::Round([timespan]::fromseconds($seconds).Milliseconds, 2)
}

function GetSummary {
    param ([double] $poshMs, [double] $tabMs)
    return "posh-tabcomplete: ${tabMs}ms, posh-git: ${poshMs}ms ($([math]::Round($poshMs / $tabMs, 2))x faster)"
}

function GetNumRuns {
    return 150;
}