Comments (10)
A big nope! We do not send our sensitive data through the internet. Considering the potential of having unreleased layouts this is a no-go.
The measured times are sobering however. It looks like you used features from Gulp 4? I think gulp 4 is not stable yet and I know they have some issues they want to have resolved (1, 2) before the official release.
from baumeister.
At the moment there is a minimal performance advantage for Grunt.
The following is measured:
- Less compiling
- Auto prefixing
- Sourcemap generation
1.07s
vs. 955ms
$ gulp styles
[00:37:09] Using gulpfile ~/Documents/Projects/bootstrap-kickstart/gulpfile.js
[00:37:09] Starting 'styles'...
[gulp] less compiling: 808 ms
[gulp] auto prefixing: 341 ms
[00:37:10] Finished 'styles' after 1.07 s
$ grunt styles
Running "less:dev" (less) task
>> 1 stylesheet created.
>> 1 sourcemap created.
Running "autoprefixer:dev" (autoprefixer) task
>> 1 autoprefixed stylesheet created.
>> 1 sourcemap created.
Done, without errors.
Execution Time (2015-12-21 23:37:57 UTC)
less:dev 696ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 73%
autoprefixer:dev 255ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 27%
Total 955ms
But I ❤️ the way and simplicity of Gulp. So I will continue with the dev task in the gulp branch.
from baumeister.
woot. How is grunt faster without using pipes and at the same time creating and removing tons of temp files... This is magic. THIS. IS. MADNESS.
However, the grunt vs gulp startup times are not measured yet.
from baumeister.
jep sounds weird 😂
from baumeister.
Just because it doesn't uses a "magic" tec, it doesn't has to be slower.
Bootstrapping and other weird stuff can take away all advantages. It will be interesting how much faster it is when it is started and running the processes over and over :)
from baumeister.
@tuxBurner X-Ref: #42
from baumeister.
Just because it doesn't uses a "magic" tec, it doesn't has to be slower.
It’s not magic but the fact that Gulp can handle task parallel instead of sequential which is a big plus compared to Grunt 😘
from baumeister.
I’m done with the dev task.
Final result:
- Gulp → 6.55 s
- Grunt → 2.8 s
Grunt:
Execution Time (2016-01-02 20:40:38 UTC)
clean:server 34ms ▇▇ 1%
less:dev 713ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 26%
autoprefixer:dev 259ms ▇▇▇▇▇▇▇▇▇▇▇▇▇ 9%
copy:server 125ms ▇▇▇▇▇▇▇ 4%
generator:dev 40ms ▇▇▇ 1%
htmllint:all 1.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 39%
bootlint:files 219ms ▇▇▇▇▇▇▇▇▇▇▇ 8%
eslint:target 306ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 11%
Total 2.8s
Gulp:
[21:37:07] Starting 'dev'...
[21:37:07] Starting 'cleanServer'...
[21:37:07] Finished 'cleanServer' after 68 ms
[21:37:07] Starting 'parallel'...
[21:37:07] Starting 'scripts'...
[21:37:07] Starting 'css'...
[21:37:07] Starting 'copyLibsToServer'...
[21:37:07] Starting 'html'...
[21:37:08] Finished 'scripts' after 1.07 s
[21:37:09] Finished 'html' after 1.42 s
[21:37:09] Finished 'css' after 1.42 s
[21:37:09] Finished 'copyLibsToServer' after 1.51 s
[21:37:09] Finished 'parallel' after 1.51 s
[21:37:09] Starting 'parallel'...
[21:37:09] Starting 'htmllint'...
[21:37:09] Starting 'copyAssetsToServer'...
[21:37:09] Finished 'copyAssetsToServer' after 18 ms
[21:37:14] Finished 'htmllint' after 4.96 s
[21:37:14] Finished 'parallel' after 4.96 s
[21:37:14] Finished 'dev' after 6.55 s
The biggest problem is HTML validation using gulp-html taking approximately 4 seconds. If we would replace that with gulp-w3cjs we could take the dev task down to 3 seconds and make it as fast as Grunt. But we don’t want to send our markup through the internet, do we?
from baumeister.
This change is in the making.
Grunt is gone in the v4-dev
branch and almost every task has been replaced.
See #127 for details.
from baumeister.
Done 🎉
from baumeister.
Related Issues (20)
- Additional enhancements for the final v3 release HOT 1
- Add `font-loader`
- feat: add automated accessibility tests HOT 1
- Bring back Browsersync? HOT 10
- Feature: Make it possible to configure Baumeister via package.json
- Replace metalsmith with handlebars-loader HOT 1
- Bring back validating HTML HOT 1
- Proof read docs HOT 2
- Nested pages - feature request? HOT 1
- Error during build HOT 3
- Let Webpack load images from SASS HOT 1
- ESLint rule `linebreak-style` should be configured as warning HOT 1
- Need support for relative url's in handlebar templates HOT 1
- Templating using markdown and handlebars not working HOT 3
- Saving pages as {folderName}/index.html HOT 1
- Fails to build after fresh install HOT 1
- Instantly fails build after install HOT 1
- npm scripts throwing errors HOT 4
- Resolving background-image path in SASS HOT 2
- Adding CSS to the vendor bundle via `bundleCSS` is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baumeister.