Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Last active November 25, 2015 12:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbeletsky/6b349a08aa6bf16a145a to your computer and use it in GitHub Desktop.
Save alexbeletsky/6b349a08aa6bf16a145a to your computer and use it in GitHub Desktop.
Grunt vs. Gulp for Browserify (Babelify, Reactify)

Tested on react-grunt-es6 and react-gulp-es6.

grunt

 in react2/ on master
› grunt
Running "browserify:dev" (browserify) task

Done, without errors.


Execution Time (2015-02-18 11:59:19 UTC)
loading tasks   606ms  ▇▇▇▇▇▇▇▇▇▇ 17%
browserify:dev   2.9s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 83%
Total 3.5s

gulp

 in react3/ on master
› gulp
[12:59:52] Using gulpfile ~/Development/Projects/experiments/react3/Gulpfile.js
[12:59:52] Starting 'browserify'...
[12:59:52] Finished 'browserify' after 9.05 ms
[12:59:52] Starting 'default'...
[12:59:52] Finished 'default' after 9.66 μs

~3s vs ~9ms

gulp is clearly the winner

@callumacrae
Copy link

This is an unfair test; the actual time isn't being measured because you're not returning the stream. Try putting a "return" at the beginning of this line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment