+ 1

Which one is faster? Bash shell / cmd / power shell scripting Or C/C++ ? And is Python faster than shell scripting?

An explanatory answer or link would really help. Thank You :)

17th Jun 2020, 4:54 PM
Anurag Mondal
Anurag Mondal - avatar
5 Respuestas
+ 1
They both are written in C and it depends on the skill of the user to operate a machine. All operating systems you see today are also the exact copies of Unix so it doesn't matter which one you use. (except for some really niche ones like DTSS or OS/360 or the likes.)
17th Jun 2020, 7:08 PM
Anubhav Mattoo
Anubhav Mattoo - avatar
+ 1
C is by far the fastest of them all. BASh (Bourne Again Shell) is written in C which adds a step of translation and reduces speed. Same goes for any other shell. Python is known for being bulky and horrendously slow(and I am neither joking or using harsh terms). It is an interpreted language with a weak typing. It cannot match the speed and efficiency of a compiled language.
17th Jun 2020, 6:29 PM
Anubhav Mattoo
Anubhav Mattoo - avatar
+ 1
CMD and PowerShell are shells too. Just to give a perspective Batch Script is for MS-DOS. MS-DOS was retired in 1997 in favour of Windows NT. PowerShell was designed for Windows NT. BASh vs PowerShell is a debate I never do because there is always something the the one can do and the other can't but in reality the are pretty evenly matched. You choose what is required.
17th Jun 2020, 6:55 PM
Anubhav Mattoo
Anubhav Mattoo - avatar
0
Anubhav Mattoo Oh Okay, Is it same for Batch Scripting (CMD) and Powershell?... And if I'd had to choose between bash and Powershell(as it is cross platform now) based on performance and ease to use which one should I choose?
17th Jun 2020, 6:46 PM
Anurag Mondal
Anurag Mondal - avatar
0
You got me wrong 😅 Anubhav Mattoo I asked About bash vs Powershell for a linux platform
17th Jun 2020, 7:02 PM
Anurag Mondal
Anurag Mondal - avatar