2015-01-08 17:20:05 -05:00
|
|
|
var config = exports.config = require('./protractor-shared.js').config;
|
2015-01-06 18:19:22 -05:00
|
|
|
// load traceur runtime as our tests are written in es6
|
|
|
|
require('traceur/bin/traceur-runtime.js');
|
2015-01-17 00:18:18 -05:00
|
|
|
var nodeUuid = require('node-uuid');
|
2015-01-06 18:19:22 -05:00
|
|
|
|
2015-01-09 21:00:04 -05:00
|
|
|
var cloudReporterConfig;
|
2015-01-08 17:20:05 -05:00
|
|
|
if (process.env.CLOUD_SECRET_PATH) {
|
|
|
|
console.log('using cloud reporter!');
|
|
|
|
cloudReporterConfig = {
|
|
|
|
auth: require(process.env.CLOUD_SECRET_PATH),
|
|
|
|
projectId: 'angular-perf',
|
2015-01-17 00:18:18 -05:00
|
|
|
datasetId: 'benchmarks',
|
|
|
|
tableId: 'ng2perf'
|
2015-01-08 17:20:05 -05:00
|
|
|
};
|
2015-01-09 21:00:04 -05:00
|
|
|
}
|
|
|
|
|
2015-02-11 14:40:29 -05:00
|
|
|
config.specs = ['dist/js/cjs/**/e2e_test/**/*_perf.js'];
|
|
|
|
config.exclude = ['dist/js/cjs/**/node_modules/**'];
|
|
|
|
|
2015-01-16 20:03:20 -05:00
|
|
|
config.jasmineNodeOpts.defaultTimeoutInterval = 80000;
|
|
|
|
|
2015-01-17 00:18:18 -05:00
|
|
|
var runId = nodeUuid.v1();
|
|
|
|
if (process.env.GIT_SHA) {
|
|
|
|
runId = process.env.GIT_SHA + ' ' + runId;
|
|
|
|
}
|
|
|
|
|
2015-01-08 17:20:05 -05:00
|
|
|
config.params = {
|
|
|
|
benchmark: {
|
2015-01-17 00:18:18 -05:00
|
|
|
runId: runId,
|
2015-01-08 17:20:05 -05:00
|
|
|
// size of the sample to take
|
|
|
|
sampleSize: 20,
|
2015-01-16 20:03:20 -05:00
|
|
|
timeout: 60000,
|
2015-01-08 17:20:05 -05:00
|
|
|
metrics: ['script', 'render', 'gcAmount', 'gcAmountInScript', 'gcTime'],
|
|
|
|
// forces a gc after every run
|
|
|
|
forceGc: false,
|
|
|
|
reporters: [
|
2015-02-11 14:40:29 -05:00
|
|
|
require('./dist/js/cjs/benchpress/src/console_reporter.js'),
|
|
|
|
cloudReporterConfig ? require('./dist/js/cjs/benchpress/src/cloud_reporter.js') : null,
|
2015-01-08 17:20:05 -05:00
|
|
|
],
|
|
|
|
cloudReporter: cloudReporterConfig,
|
|
|
|
scaling: [{
|
2015-01-15 18:14:54 -05:00
|
|
|
userAgent: /Android/, value: 0.125
|
2015-01-08 17:20:05 -05:00
|
|
|
}]
|
2014-12-22 20:50:10 -05:00
|
|
|
}
|
|
|
|
};
|