Last active
August 29, 2015 14:22
-
-
Save axemclion/2772feac1318b758aee5 to your computer and use it in GitHub Desktop.
Performance monitoring for Ember versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Pre-req | |
- Ensure that you have ember-cli installed | |
- Clone https://github.com/wycats/dbmonster | |
- Run CouchDB to save the results | |
- Initialize the database using node_modules/.bin/perfjankie --couch-database=ember-perf --couch-user=admin_user --couch-pwd=admin_pass --only-update-site --couch-server=http://localhost:5984 | |
To Run Tests | |
1. Update version of ember in bower.json | |
2. Run ember build --environment production | |
3. Run a HTTP server on dist directory, at port 8080 | |
4. Data is recorded in the CouchDB database. | |
Notes | |
- You may also have to replace this.get('attrs.db') to this.get('db').samples in app/components/dbmon-database.js | |
- You may also have to replace {{attrs.db.name}} to {{db.name}} in app/templates/components/dbmon-database.hbs | |
- Using Ember canary - http://www.ember-cli.com/#using-canary-build-instead-of-release | |
- If ember-cli fails due to rimraf/glob error, just create a dummy glob.hasMagic function | |
*/ | |
var perfjankie = require('perfjankie'); | |
var version = require('./../dbmonster/bower.json').dependencies.ember; | |
perfjankie({ | |
url: 'http://192.168.0.106:8080', | |
name: 'DBMonster', | |
time: (version + '.....').split(/[\.-]/g).slice(0, 5).map(function(part) { | |
return ('ZZZZZ' + part).slice(-5); | |
}).join('.'), // Hack to sort versions, assuming version is like 1.12.0-beta.1 or 1.12.0 | |
run: version, | |
couch: { | |
server: 'http://localhost:5984', | |
database: 'ember-perf' | |
}, | |
browsers: [{ | |
browserName: 'android', | |
}], | |
selenium: 'http://localhost:9515', | |
repeat: 30 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment