Collection of benchmarks for ShellJS
This is a comparison of ShellJS and bash for performance. Each test case runs scripts with equivalent output and compares Bash's runtime with ShellJS's. Surprisingly, ShellJS is often the winner, sometimes being up to 12x faster! Woohoo! See below for ShellJS performance wins.
-
Linux
-
4.2.0-30-generic
-
x64
-
Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz × 4
-
Node.js: v5.3.0
-
V8: 4.6.85.31
-
name:
/bin/bash -
version: GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2013 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.
-
Bash took
780milliseconds -
ShellJS 0.5.3 took
284milliseconds -
ShellJS 0.6.0 took
270milliseconds -
ShellJS latest took
174milliseconds
ShellJS was 4.483 times faster than Bash
-
Bash took
223milliseconds -
ShellJS 0.5.3 took
409milliseconds -
ShellJS 0.6.0 took
295milliseconds -
ShellJS latest took
823milliseconds
Bash was 3.691 times faster than ShellJS
-
Bash took
98milliseconds -
ShellJS 0.5.3 took
176milliseconds -
ShellJS 0.6.0 took
184milliseconds -
ShellJS latest took
223milliseconds
Bash was 2.276 times faster than ShellJS
-
Bash took
85milliseconds -
ShellJS 0.5.3 took
171milliseconds -
ShellJS 0.6.0 took
187milliseconds -
ShellJS latest took
183milliseconds
Bash was 2.153 times faster than ShellJS
-
Bash took
163milliseconds -
ShellJS 0.5.3 took
261milliseconds -
ShellJS 0.6.0 took
284milliseconds -
ShellJS latest took
788milliseconds
Bash was 4.834 times faster than ShellJS
-
Bash took
10345milliseconds -
ShellJS 0.5.3 took
684milliseconds -
ShellJS 0.6.0 took
908milliseconds -
ShellJS latest took
1107milliseconds
ShellJS was 9.345 times faster than Bash
-
Bash took
917milliseconds -
ShellJS 0.5.3 took
1312milliseconds -
ShellJS 0.6.0 took
1911milliseconds -
ShellJS latest took
4158milliseconds
Bash was 4.534 times faster than ShellJS
-
Bash took
1486milliseconds -
Skipping test for ShellJS 0.5.3
-
ShellJS 0.6.0 took
307milliseconds -
ShellJS latest took
468milliseconds
ShellJS was 3.175 times faster than Bash