@@ -13,10 +13,9 @@ Woohoo! See below for [ShellJS performance wins](#shelljs-performance-wins).
13
13
14
14
### ShellJS performance wins
15
15
16
- - [ echoIntoFile] ( scripts/echoIntoFile )
17
- - [ envVariable] ( scripts/envVariable )
18
- - [ ls10k] ( scripts/ls10k )
19
- - [ touchSyntax06] ( scripts/touchSyntax06 )
16
+ - [ echoIntoFile] ( test/echoIntoFile )
17
+ - [ ls10k] ( test/ls10k )
18
+ - [ touchSyntax0.6] ( test/touchSyntax0.6 )
20
19
21
20
## System Information:
22
21
@@ -26,88 +25,119 @@ Woohoo! See below for [ShellJS performance wins](#shelljs-performance-wins).
26
25
27
26
- x64
28
27
29
- - Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz x 4
28
+ - Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz × 4
30
29
31
30
## Node information
32
31
33
- - Node.js v5.3.0
32
+ - Node.js: v5.3.0
34
33
35
- - V8 4.6.85.31
34
+ - V8: 4.6.85.31
36
35
37
36
38
37
39
38
## Shell Information:
40
39
41
- - /bin/bash
40
+ - name: ` /bin/bash `
42
41
43
-
44
- - GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)
42
+ - version: GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)
45
43
Copyright (C) 2013 Free Software Foundation, Inc.
46
44
License GPLv3+: GNU GPL version 3 or later < http://gnu.org/licenses/gpl.html >
47
45
This is free software; you are free to change and redistribute it.
48
46
There is NO WARRANTY, to the extent permitted by law.
49
47
50
48
51
- ### [ echoIntoFile] ( scripts/echoIntoFile )
49
+ ### [ echoIntoFile] ( test/echoIntoFile )
50
+
51
+ - [ Bash] ( test/echoIntoFile/echoIntoFile.sh ) took ` 842 ` milliseconds
52
+
53
+ - [ ShellJS 0.5.3] ( test/echoIntoFile/echoIntoFile.js ) took ` 251 ` milliseconds
54
+
55
+ - [ ShellJS 0.6.0] ( test/echoIntoFile/echoIntoFile.js ) took ` 260 ` milliseconds
56
+
57
+ - [ ShellJS latest] ( test/echoIntoFile/echoIntoFile.js ) took ` 199 ` milliseconds
58
+
59
+ ShellJS was ` 4.231 ` times faster than Bash
60
+
61
+ ### [ envVariable] ( test/envVariable )
62
+
63
+ - [ Bash] ( test/envVariable/envVar.sh ) took ` 333 ` milliseconds
64
+
65
+ - [ ShellJS 0.5.3] ( test/envVariable/envVar.js ) took ` 288 ` milliseconds
66
+
67
+ - [ ShellJS 0.6.0] ( test/envVariable/envVar.js ) took ` 291 ` milliseconds
68
+
69
+ - [ ShellJS latest] ( test/envVariable/envVar.js ) took ` 687 ` milliseconds
70
+
71
+ Bash was ` 2.063 ` times faster than ShellJS
72
+
73
+ ### [ forLoopAlternateSyntax] ( test/forLoopAlternateSyntax )
74
+
75
+ - [ Bash] ( test/forLoopAlternateSyntax/helloworld10k.sh ) took ` 100 ` milliseconds
76
+
77
+ - [ ShellJS 0.5.3] ( test/forLoopAlternateSyntax/helloworld10k.js ) took ` 182 ` milliseconds
78
+
79
+ - [ ShellJS 0.6.0] ( test/forLoopAlternateSyntax/helloworld10k.js ) took ` 178 ` milliseconds
80
+
81
+ - [ ShellJS latest] ( test/forLoopAlternateSyntax/helloworld10k.js ) took ` 221 ` milliseconds
52
82
53
- - [ ShellJS ] ( scripts/echoIntoFile/echoIntoFile.js ) took ` 257 ` milliseconds
83
+ Bash was ` 2.210 ` times faster than ShellJS
54
84
55
- - [ Bash ] ( scripts/echoIntoFile/echoIntoFile.sh ) took ` 832 ` milliseconds
85
+ ### [ helloworld ] ( test/helloworld )
56
86
57
- ShellJS was ` 3.237 ` times faster than Bash
87
+ - [ Bash ] ( test/helloworld/helloworld.sh ) took ` 84 ` milliseconds
58
88
59
- ### [ envVariable ] ( scripts/envVariable )
89
+ - [ ShellJS 0.5.3 ] ( test/helloworld/helloworld.js ) took ` 161 ` milliseconds
60
90
61
- - [ ShellJS] ( scripts/envVariable/envVar .js) took ` 1164 ` milliseconds
91
+ - [ ShellJS 0.6.0 ] ( test/helloworld/helloworld .js) took ` 170 ` milliseconds
62
92
63
- - [ Bash ] ( scripts/envVariable/envVar.sh ) took ` 1451 ` milliseconds
93
+ - [ ShellJS latest ] ( test/helloworld/helloworld.js ) took ` 196 ` milliseconds
64
94
65
- ShellJS was ` 1.247 ` times faster than Bash
95
+ Bash was ` 2.333 ` times faster than ShellJS
66
96
67
- ### [ forLoopAlternateSyntax ] ( scripts/forLoopAlternateSyntax )
97
+ ### [ helloworld10k ] ( test/helloworld10k )
68
98
69
- - [ ShellJS ] ( scripts/forLoopAlternateSyntax /helloworld10k.js ) took ` 184 ` milliseconds
99
+ - [ Bash ] ( test/helloworld10k /helloworld10k.sh ) took ` 198 ` milliseconds
70
100
71
- - [ Bash ] ( scripts/forLoopAlternateSyntax /helloworld10k.sh ) took ` 92 ` milliseconds
101
+ - [ ShellJS 0.5.3 ] ( test/helloworld10k /helloworld10k.js ) took ` 300 ` milliseconds
72
102
73
- Bash was ` 2.000 ` times faster than ShellJS
103
+ - [ ShellJS 0.6.0 ] ( test/helloworld10k/helloworld10k.js ) took ` 261 ` milliseconds
74
104
75
- ### [ helloworld ] ( scripts/helloworld )
105
+ - [ ShellJS latest ] ( test/helloworld10k/helloworld10k.js ) took ` 537 ` milliseconds
76
106
77
- - [ ShellJS ] ( scripts/helloworld/helloworld.js ) took ` 178 ` milliseconds
107
+ Bash was ` 2.712 ` times faster than ShellJS
78
108
79
- - [ Bash ] ( scripts/helloworld/helloworld.sh ) took ` 83 ` milliseconds
109
+ ### [ ls10k ] ( test/ls10k )
80
110
81
- Bash was ` 2.145 ` times faster than ShellJS
111
+ - [ Bash] ( test/ls10k/ls10k.sh ) took ` 13272 ` milliseconds
82
112
83
- ### [ helloworld10k ] ( scripts/helloworld10k )
113
+ - [ ShellJS 0.5.3 ] ( test/ls10k/ls10k.js ) took ` 1145 ` milliseconds
84
114
85
- - [ ShellJS] ( scripts/helloworld10k/helloworld10k .js) took ` 288 ` milliseconds
115
+ - [ ShellJS 0.6.0 ] ( test/ls10k/ls10k .js) took ` 1313 ` milliseconds
86
116
87
- - [ Bash ] ( scripts/helloworld10k/helloworld10k.sh ) took ` 217 ` milliseconds
117
+ - [ ShellJS latest ] ( test/ls10k/ls10k.js ) took ` 2348 ` milliseconds
88
118
89
- Bash was ` 1.327 ` times faster than ShellJS
119
+ ShellJS was ` 5.652 ` times faster than Bash
90
120
91
- ### [ ls10k ] ( scripts/ls10k )
121
+ ### [ pwd10k ] ( test/pwd10k )
92
122
93
- - [ ShellJS ] ( scripts/ls10k/ls10k.js ) took ` 743 ` milliseconds
123
+ - [ Bash ] ( test/pwd10k/path10k.sh ) took ` 1259 ` milliseconds
94
124
95
- - [ Bash ] ( scripts/ls10k/ls10k.sh ) took ` 10145 ` milliseconds
125
+ - [ ShellJS 0.5.3 ] ( test/pwd10k/path10k.js ) took ` 1696 ` milliseconds
96
126
97
- ShellJS was ` 13.654 ` times faster than Bash
127
+ - [ ShellJS 0.6.0 ] ( test/pwd10k/path10k.js ) took ` 2314 ` milliseconds
98
128
99
- ### [ pwd10k ] ( scripts /pwd10k)
129
+ - [ ShellJS latest ] ( test /pwd10k/path10k.js ) took ` 6881 ` milliseconds
100
130
101
- - [ ShellJS ] ( scripts/pwd10k/path10k.js ) took ` 2039 ` milliseconds
131
+ Bash was ` 5.465 ` times faster than ShellJS
102
132
103
- - [ Bash ] ( scripts/pwd10k/path10k.sh ) took ` 740 ` milliseconds
133
+ ### [ touchSyntax0.6 ] ( test/touchSyntax0.6 )
104
134
105
- Bash was ` 2.755 ` times faster than ShellJS
135
+ - [ Bash] ( test/touchSyntax0.6/touchrm10k.sh ) took ` 1750 ` milliseconds
106
136
107
- ### [ touchSyntax06 ] ( scripts/touchSyntax06 )
137
+ - Skipping test for ShellJS 0.5.3
108
138
109
- - [ ShellJS] ( scripts/touchSyntax06 /touchrm10k.js) took ` 322 ` milliseconds
139
+ - [ ShellJS 0.6.0 ] ( test/touchSyntax0.6 /touchrm10k.js) took ` 275 ` milliseconds
110
140
111
- - [ Bash ] ( scripts/touchSyntax06 /touchrm10k.sh ) took ` 1565 ` milliseconds
141
+ - [ ShellJS latest ] ( test/touchSyntax0.6 /touchrm10k.js ) took ` 523 ` milliseconds
112
142
113
- ShellJS was ` 4.860 ` times faster than Bash
143
+ ShellJS was ` 3.346 ` times faster than Bash
0 commit comments