Last active
January 4, 2016 00:49
-
-
Save nfroidure/8543653 to your computer and use it in GitHub Desktop.
Help me benchmarking Gulp VS Grunt! A summary of the results will be published on my blog (http://www.insertafter.com/blog.html).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install the project | |
git clone git@github.com: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 |
Ok, new benchmarks are irrelevant since the 2 branches diverged now. Thanks for the intent :).
Oops, sorry it took me that long...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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