Giter Club home page Giter Club logo

Comments (7)

dignifiedquire avatar dignifiedquire commented on June 18, 2024

Some more stats

  • gulp a 1.51s user 0.15s system 106% cpu 1.560 total where a is a task that is directly defined in a local gulpfile to use gulp-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.

dignifiedquire avatar dignifiedquire commented on June 18, 2024

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 small aegir-cli module that can be globally installed and invoke the local installation.
  • Add pre and post hooks for the tests, without needing to load gulp manually. They should just be part of .aegir.js

from aegir.

dignifiedquire avatar dignifiedquire commented on June 18, 2024

no more gulp, should be a good deal faster now

from aegir.

victorb avatar victorb commented on June 18, 2024
./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.

dryajov avatar dryajov commented on June 18, 2024

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.

vmx avatar vmx commented on June 18, 2024

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.

victorb avatar victorb commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.