Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eviltrout/ember-performance
A suite of tests for EmberJS to help with performance
https://github.com/eviltrout/ember-performance
Last synced: 3 months ago
JSON representation
A suite of tests for EmberJS to help with performance
- Host: GitHub
- URL: https://github.com/eviltrout/ember-performance
- Owner: eviltrout
- Created: 2013-08-05T15:50:05.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T04:26:12.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T16:18:47.352Z (6 months ago)
- Language: JavaScript
- Size: 18.1 MB
- Stars: 140
- Watchers: 15
- Forks: 25
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ember - ember-performance - A suite of tests for Ember.js to help with performance. (Packages / Benchmarking)
README
### 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:- Browsers have a large variance in performance characteristics, so
run each test in a new document, storing the results in localStorage.- Use benchmark.js for micro benchmarks and a different strategy for
macro benchmarks.- Record Baseline performance so that we can compare Ember to the
baseline performance of the platform it's run on.### bench.json
* name: humanized name
* description: TL;DR of the benchmark, sometimes notes can be handy to display
* keywords: these are meant to label/categorize tests, allowing tooling and users to quickly group and differentiate
* disabled: allows for a test to be entirely disabled### 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:
```bash
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:
```javascript
let app = new EmberApp(defaults, {
'ember-cli-terser': { enabled: false },
sourcemaps: { enabled: false },
});
``````bash
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