With new versions available (up to date bash, nodejs), i think benchmark results are even more flattering.
Especially that line looks cool:
ShellJS was 219.411 times faster than Bash
System Information:
- Darwin
- 17.7.0
- x64
- Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz × 8
Node information
v12.5.0
- Node.js: v12.5.0
- V8: 7.5.288.22-node.14
Shell Information:
- name:
/bin/bash
- version: GNU bash, version 5.0.7(1)-release (x86_64-apple-darwin17.7.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[echoIntoFile]
- [Bash] took
2280 milliseconds
- [ShellJS 0.5.3] took
414 milliseconds
- [ShellJS 0.6.0] took
426 milliseconds
- [ShellJS latest] took
106 milliseconds
ShellJS was 21.509 times faster than Bash
=======================
[envVariable]
- [Bash] took
228 milliseconds
- [ShellJS 0.5.3] took
259 milliseconds
- [ShellJS 0.6.0] took
257 milliseconds
- [ShellJS latest] took
109 milliseconds
Output differs
ShellJS was 2.092 times faster than Bash
=======================
[forLoopAlternateSyntax]
- [Bash] took
79 milliseconds
- [ShellJS 0.5.3] took
140 milliseconds
- [ShellJS 0.6.0] took
134 milliseconds
- [ShellJS latest] took
110 milliseconds
Output differs
Bash was 1.392 times faster than ShellJS
=======================
[helloworld]
- [Bash] took
67 milliseconds
- [ShellJS 0.5.3] took
119 milliseconds
- [ShellJS 0.6.0] took
119 milliseconds
- [ShellJS latest] took
114 milliseconds
Output differs
Bash was 1.701 times faster than ShellJS
=======================
[helloworld10k]
- [Bash] took
152 milliseconds
- [ShellJS 0.5.3] took
228 milliseconds
- [ShellJS 0.6.0] took
235 milliseconds
- [ShellJS latest] took
108 milliseconds
Output differs
ShellJS was 1.407 times faster than Bash
=======================
[ls10k]
- [Bash] took
23477 milliseconds
- [ShellJS 0.5.3] took
667 milliseconds
- [ShellJS 0.6.0] took
697 milliseconds
- [ShellJS latest] took
107 milliseconds
Output differs
ShellJS was 219.411 times faster than Bash
=======================
[pwd10k]
- [Bash] took
631 milliseconds
- [ShellJS 0.5.3] took
2183 milliseconds
- [ShellJS 0.6.0] took
1911 milliseconds
- [ShellJS latest] took
111 milliseconds
Output differs
ShellJS was 5.685 times faster than Bash
=======================
[touchSyntax0.6]
- [Bash] took
3971 milliseconds
- Skipping test for ShellJS 0.5.3
- [ShellJS 0.6.0] took
348 milliseconds
- [ShellJS latest] took
113 milliseconds
ShellJS was 35.142 times faster than Bash
=======================
With new versions available (up to date bash, nodejs), i think benchmark results are even more flattering.
Especially that line looks cool:
System Information:
Node information
v12.5.0
Shell Information:
/bin/bashCopyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[echoIntoFile]
2280milliseconds414milliseconds426milliseconds106millisecondsShellJS was
21.509times faster than Bash=======================
[envVariable]
228milliseconds259milliseconds257milliseconds109millisecondsOutput differs
ShellJS was
2.092times faster than Bash=======================
[forLoopAlternateSyntax]
79milliseconds140milliseconds134milliseconds110millisecondsOutput differs
Bash was
1.392times faster than ShellJS=======================
[helloworld]
67milliseconds119milliseconds119milliseconds114millisecondsOutput differs
Bash was
1.701times faster than ShellJS=======================
[helloworld10k]
152milliseconds228milliseconds235milliseconds108millisecondsOutput differs
ShellJS was
1.407times faster than Bash=======================
[ls10k]
23477milliseconds667milliseconds697milliseconds107millisecondsOutput differs
ShellJS was
219.411times faster than Bash=======================
[pwd10k]
631milliseconds2183milliseconds1911milliseconds111millisecondsOutput differs
ShellJS was
5.685times faster than Bash=======================
[touchSyntax0.6]
3971milliseconds348milliseconds113millisecondsShellJS was
35.142times faster than Bash=======================