Home

Awesome

Ember Performance Suite

The Ember Performance Suite is designed to help profile and diagnose the performance of the Ember.js framework. The general strategy is:

bench.json

To run in development mode

  1. npm install
  2. npm install -g bower
  3. bower install
  4. npm run server
  5. bin/launch-chrome http://localhost:4200

To build for production mode

  1. npm install
  2. npm install -g bower
  3. npm run prod-server

And open a browser to http://localhost:4200

Adding a new Ember Version

To add a new ember version, you'll need to build a production bundle. Navigate to an empty scratch directory outside of this project, install ember-cli, then run:

VERSION=4.0.1
ember new myapp --yarn --skip-git --skip-bower --no-welcome
cd myapp
yarn add -D ember-source@$VERSION

Edit ember-cli-build.js to disable minification and sourcemaps:

let app = new EmberApp(defaults, {
  'ember-cli-terser': { enabled: false },
  sourcemaps: { enabled: false },
});
yarn build --target production
mv dist/assets/vendor-*.js ../../ember-performance/ember/ember-$VERSION.prod.js
mv node_modules/ember-source/dist/ember-template-compiler.js ../../ember-performance/ember/ember-$VERSION.template-compiler.js

License

MIT