- Joined
- Jul 15, 2022
- Messages
- 969 (1.06/day)
GitHub - shellspec/shellbench: A benchmark utility for POSIX shell comparison
A benchmark utility for POSIX shell comparison. Contribute to shellspec/shellbench development by creating an account on GitHub.
github.com
I test the following things.
./shellbench -s bash -c sample/eval.sh
./shellbench -s bash -c sample/func.sh
./shellbench -s bash -c sample/cmp.sh
The idea is to do the test in a realistic way. Most people at the default shell of their operating system.
Therefore, the idea is to test the default shell, and not any other shell.
In the case of Ubuntu, you can test bash. In the case of FreeBSD, you're going to test ash.
Certain operating systems use dash or zsh by default.
Suppose you use zsh, you would run these commands.
./shellbench -s zsh -c sample/eval.sh
./shellbench -s zsh -c sample/func.sh
./shellbench -s zsh -c sample/cmp.sh
With macOS Catalina, Apple switched from using bash as the default terminal shell to zsh.
If you are using windows then you can use WSL to do these tests.
According to Stack Overflow, Bash/Shell is one of the most popular technologies in 2024.
I can be more popular than Java/C#/C++/C/Php/powershell/Go/Rust/Scala/MATLAB/R/Visual Basic/Swift/Assembly/etc.
Hardware: Intel 12700KF (stock) -- G.SKILL RIPJAWS @3600 CL18 (stock) -- Sapphire RX 7600 -- ASRock B760M-ITX/D4 WiFi -- fractal design DEFINE NANO S -- bequiet! SYSTEM POWER 10 550W -- DeepCool AG500BK ARGB -- EVO 850 500GB
Software: OpenBSD -current, bspwm, Mesa open-source driver, UFS file system
Please also include your hardware specs.