-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add Select-String
/sls
to the benchsuite
#2783
Comments
Could you rephrase your request for a target audience that doesn't know PowerShell? (For example, me.) Maybe you could provide real examples of what to do and what not to do. |
Top's using default aliases, bottom's using full commands just for clarity's sake. If you want to run a bin with the same name as the alias on unix OS' (on Windows you'd just append |
Thanks! I'll take a look when I get chance to use my Windows laptop. I'll at least do some ad hoc benchmarking, and depending on the result of that, I may or may not add it to the |
Sure, just know that PowerShell shipped with Windows' version 5, so there could be some pretty large differences. |
Differences between what? Are you suggesting using PowerShell on Unix instead? (I'd appreciate if you could spell out more of what you mean here.) |
The OS doesn't matter, It's just a matter of PowerShell's version, PowerShell 7+ can be used anywhere. PowerShell shipped on Windows' version 5, years out of date. You can benchmark on anything you like. ❯ powershell -NoProfile -NonInteractive -Command '$PSVersionTable'
Name Value
---- -----
PSVersion 5.1.19041.4291
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.4291
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
❯ pwsh -NoProfile -NonInteractive -Command '$PSVersionTable'
Name Value
---- -----
PSVersion 7.5.0-preview.2
PSEdition Core
GitCommitId 7.5.0-preview.2
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0 |
Describe your feature request
Well
Select-String
/sls
doesn't have to pipe binary data to a forked process, and it's much faster thangrep
, so I was always curious how it compared. Please just don't respawn thepwsh
process, as that's very heavy and won't give you accurate results, benches would have to be done in the same shell.https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string
The text was updated successfully, but these errors were encountered: