-
-
Save nfroidure/8543653 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# Install the project | |
git clone [email protected]:ChtiJS/chtijs.francejs.org chtijs | |
cd chtijs | |
# Testing the Grunt build | |
git checkout master | |
npm install --quiet | |
time for a in {1..10}; do grunt dist; done | |
# Copy paste the result as in a comment to this gist formatted as in the first comment | |
# Testing the Gulp build | |
git checkout gulp | |
npm install --quiet | |
# in the buffer mode | |
time for a in {1..10}; do gulp build --prod; done | |
# in the stream mode | |
time for a in {1..10}; do gulp build --prod --stream; done | |
# Copy paste the result as in a comment to this gist formatted as in the first comment | |
### Note ### | |
# The full potential of stream mode isn't revealed by those tests since there | |
# is several plugins that do not support streaming yet |
Core i5 - SSD
Grunt
real 0m17.799s
user 0m12.783s
sys 0m1.197s
Gulp buffer
real 0m13.378s
user 0m11.752s
sys 0m1.153s
Gulp stream
real 0m13.211s
user 0m11.558s
sys 0m1.142s
PS: add #!/bin/bash
at the head of you .sh file so you can drop the extension ^^ & keep highlight in editors :)
Core i7 - SATA
Grunt
real 0m20.736s
user 0m14.162s
sys 0m1.257s
Gulp buffer
real 0m14.629s
user 0m13.619s
sys 0m1.190s
Gulp stream
real 0m14.112s
user 0m13.102s
sys 0m1.180s
Core i7 2,6 GHz - SATA
Grunt
real 0m23.623s
user 0m14.071s
sys 0m1.410s
Gulp buffer
real 0m21.184s
user 0m13.375s
sys 0m1.510s
Gulp stream
real 0m14.798s
user 0m13.661s
sys 0m1.317s
core i7 @2.7GHz - SSD drive
grunt
real 0m15.083s
user 0m12.210s
sys 0m1.260s
gulps buffer mode
real 0m12.958s
user 0m11.848s
sys 0m1.274s
gulp stream mode
real 0m12.397s
user 0m11.298s
sys 0m1.262s
Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz - SATA drive
Grunt
real 0m23.114s
user 0m19.746s
sys 0m1.449s
gulp (buffer mode)
real 0m29.038s
user 0m25.953s
sys 0m1.503s
gulp (stream mode)
real 0m16.144s
user 0m15.147s
sys 0m1.108s
PS : For the record, I got some errors while running the benchmark
gulp.env has been deprecated
for gulp in general (I'm using 3.5.2, you actually just need to replacegulp.env
withgulp-util.env
)streams not supported
for Browserify for gulp in stream mode
Ok, new benchmarks are irrelevant since the 2 branches diverged now. Thanks for the intent :).
Oops, sorry it took me that long...
Core i5 - SSD drive
Grunt
real 0m14.043s
user 0m10.913s
sys 0m0.676s
Gulp buffer mode
real 0m11.518s
user 0m10.293s
sys 0m0.680s
Gulp stream mode
real 0m11.466s
user 0m10.117s
sys 0m0.672s