lptstr / winfetch

🛠 A command-line system information utility written in PowerShell. Like Neofetch, but for Windows.
MIT License
1.46k stars 80 forks source link

Neofetch faster than winfetch with default settings #204

Closed vvirtues closed 11 months ago

vvirtues commented 1 year ago

I did 5 different benchmarks using hyperfine to compare them, and each time neofetch was faster. Both are at their defaults and i used -w 3 to warm them up. Is this true?

vvirtues commented 1 year ago

might be just me, but at default settings, fastfetch destroys the competition image

CarterLi commented 1 year ago

That was because the powershell interpreter was started and stoped in every run.

winfetch is pretty fast if you run it inside powershell interpreter. Try (Measure-Command { ./winfetch.ps1 }).TotalMilliseconds

rashil2000 commented 11 months ago

Winfetch will be slower if you run it outside of PowerShell. It needs to initialize the .NET runtime during startup. The benchmarks assume this cost to be absent.