Comments (7)
Some more stats
gulp a 1.51s user 0.15s system 106% cpu 1.560 total
wherea
is a task that is directly defined in a local gulpfile to usegulp-spawn-mocha
as aegir-test does.gulp test:node 2.78s user 0.58s system 83% cpu 3.996 total
with a direct gulpfile in the project directory
from aegir.
First batch of changes was made, to reduce the overhead of using gulp to a minimum. Remaining tasks are
- Find a convenient alternative to
npm run
, it is just too slow for everyday use, probably a smallaegir-cli
module that can be globally installed and invoke the local installation. - Add
pre
andpost
hooks for the tests, without needing to load gulp manually. They should just be part of.aegir.js
from aegir.
no more gulp, should be a good deal faster now
from aegir.
./node_modules/.bin/aegir test -t node 9.69s user 0.72s system 114% cpu 9.090 total
./node_modules/.bin/mocha 6.57s user 0.60s system 116% cpu 6.161 total
Seems like aegir still has a bit of overhead when it comes to starting and stopping compared to just running mocha directly.
from aegir.
Hmm... that might be due to stuff happening in the .aegir file for the specific project, assuming nothing's there, then the overhead is pretty big.
from aegir.
On my machine, the overhead is pretty much AEgir itself:
$ time node aegir/cli.js 2> /tmp/null
node aegir/cli.js 2> /tmp/null 2.19s user 0.11s system 107% cpu 2.145 total
from aegir.
Managed to remove a lot of the overhead over here by just inlining the requires: #223
node aegir/cli.js
went from taking one second to about 0.2 seconds for me with these changes.
from aegir.
Related Issues (20)
- Support typedoc-plugin-resolve-crossmodule-reference
- Deno as a test target
- 'yarn install' does not install all dependencies HOT 1
- Generate tsconfig for doc-check
- Do not automate addition of engines field to all modules
- Add "prepare" as alias to "build" by default
- Improving Aegir test speed HOT 2
- Add @packageDocumentation to readme
- docs: Run `dep-check` on TS snippet imports
- docs: Run `lint` on TS snippets in markdown when running `doc-check`
- docs: lint help output references wrong github repo
- bug: aegir memory leak?
- Enable parallel script runs HOT 2
- feat: investigate rushstack for API docs
- Move all linter rules to eslint HOT 1
- bug: aegir/fixtures `loadFixtures` incorrectly alters bytes in the browser HOT 6
- bug: esbuild config cannot be overridden for many scenarios HOT 1
- bug: `aegir test --bail` doesn't adhere to build configuration HOT 2
- feat: unordered concurrency for test scripts HOT 1
- Electron-main fails on electron ^30.0.0
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 aegir.