Collection of benchmarks for ShellJS
Note: benchmark results will be moving to Github Pages - stay tuned.
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
842milliseconds -
ShellJS 0.5.3 took
252milliseconds -
ShellJS 0.6.0 took
270milliseconds -
ShellJS latest took
178milliseconds
ShellJS was 4.730 times faster than Bash
-
Bash took
314milliseconds -
ShellJS 0.5.3 took
281milliseconds -
ShellJS 0.6.0 took
293milliseconds -
ShellJS latest took
618milliseconds
Bash was 1.968 times faster than ShellJS
-
Bash took
91milliseconds -
ShellJS 0.5.3 took
184milliseconds -
ShellJS 0.6.0 took
185milliseconds -
ShellJS latest took
235milliseconds
Bash was 2.582 times faster than ShellJS
-
Bash took
84milliseconds -
ShellJS 0.5.3 took
195milliseconds -
ShellJS 0.6.0 took
175milliseconds -
ShellJS latest took
175milliseconds
Bash was 2.083 times faster than ShellJS
-
Bash took
208milliseconds -
ShellJS 0.5.3 took
326milliseconds -
ShellJS 0.6.0 took
264milliseconds -
ShellJS latest took
760milliseconds
Bash was 3.654 times faster than ShellJS
-
Bash took
10334milliseconds -
ShellJS 0.5.3 took
690milliseconds -
ShellJS 0.6.0 took
748milliseconds -
ShellJS latest took
1115milliseconds
ShellJS was 9.268 times faster than Bash
-
Bash took
632milliseconds -
ShellJS 0.5.3 took
1625milliseconds -
ShellJS 0.6.0 took
2343milliseconds -
ShellJS latest took
6133milliseconds
Bash was 9.704 times faster than ShellJS
-
Bash took
1392milliseconds -
Skipping test for ShellJS 0.5.3
-
ShellJS 0.6.0 took
270milliseconds -
ShellJS latest took
465milliseconds
ShellJS was 2.994 times faster than Bash