Between sh and bash, which performs better on average? are there any benchmarks out there?

between sh and bash, which performs better on average? are there any benchmarks out there?

Other urls found in this thread:

gondor.apana.org.au/~herbert/dash/
twitter.com/SFWRedditVideos

Of course sh performs better.

do you have a citation for this? would very much appreciate.

sh isnt supposed to be used interactively, usually its used to run scripts that dont need bash/zsh/fish/etc features

bash/zsh/fish/etc are interactive shells

`sh` isn't shell, it's standard which various shells can implement. Bash implements `sh`, but also have tons of it's own additions.

Bash is slow. If you let `sh` script interpret by bash, the performance will be also slow.

forgot:
sh is used to run scripts because its faster

gondor.apana.org.au/~herbert/dash/

if you're trying to write performant shell code, you're doing it wrong.

Indeed. Performant shell code is written in assembly.

are there any reliable performance numbers out there for this tho?

What do you actually mean by "sh"? On most modern system /bin/sh is symlinked to bash or dash.

"Performant" is not a word

Ash is also fine. I use busybox ash for my scripting. It's mostly calling builtins, so I have less overhead.

German much?
Shell code is fine when your pipes become too long. It's mostly good to keep the coreutils fed with data and for setup, when using named pipes.

> between specification and implementation, which performs better on average?
kid, don't be a dumbfuck. on most systems out there sh is just a symlink to bash, on some to dash, ash, zsh, there are over 9000 implementations out there

"Pedantic" is tho.

Bash is a cuckold shell, install ksh

stfu

>be like me
>ignore bash
>Fuck Brian Fox
>Fuck Linux
>and fuck Linus Torvalds too

Better pick Bash for serious work, what you call "sh" is not what you think it is and the old shell won't perform as well.

Not a dictionary, sweetie pie. And besides, that's totally underfamishly.

Wikitionary isn't a dictionary? What "defines" a dictionary, Poindexter?

Words have precise meaning, "performant" does not. Engineers should communicate using precise language, like other technical disciplines.

Professional linguist here to tell you that words having "precise" meanings is an invention of literal autists.

Performant is a word.

It may, in fact, be a neologism, but it is not "a word" as per traditional definition.
Plus it sounds kind of dumb, and needlessly obscures the point you're attempting to make. Efficient has a clear meaning that leads the mind to make a semi-positive correlation, insofar as efficiency is almost always good and usually something worth seeking. "Performant" brings to mind nothing more than mere performance, which can be good or bad. It sounds like a 'meh' version of efficient, or something from marketing-speak to disguise some kind of flaw. "Is it efficient?" "Well, we prefer to call it 'performant'. It does work, you know." "Yeah, and runs out of battery in twelve seconds."

rc?

If Larousse says it's a word, it's a word. Friendly reminder that almost 30% of English words are rooted in Latin because of France.

rc what? Are you gay? fsck off.

bash is a shell, sh is a symbolic link to dash, which is a command interpreter.

On most Unix systems, sh is just an alias to a shell program and not a shell itself. On most Linux distros, sh is aliased to bash by default.

rc knock2

>Bash is slow. If you let `sh` script interpret by bash, the performance will be also slow.
Wrong. Bash in posix mode is much faster.
sh is not a shell, it's merly a link to another shell, which is mostly just bash in the more lightweight-posix mode or the dash shell on Debian systems.

>On most Unix systems, sh is just an alias
Wrong. On the (singular) Unix system, sh is the bourne shell.
>On most Linux distros, sh is aliased to bash by default.
The kernel Linux doesn't come with a shell. That's part of the GNU system.

>Bash in posix mode is much faster.
My bad, it's faster. Still slow enough to be ashamed it even exists.

That's not English, and we are discussing English words.

...

Ballet isn't an English word either. Neigher is Prince or Baron. Vertigo isn't English, Masuqerade isn't English and Fatigue isnt' English either. Ad nauseum isn't English either.

...