Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweaks to make yogi benchmark a bit more happy in CI environments.

  • Loading branch information...
commit e90d85389e8bb9dcdbd4854c722c297fab8463d0 1 parent db00ebd
@derek authored
Showing with 20 additions and 7 deletions.
  1. +20 −7 lib/cmds/benchmark.js
View
27 lib/cmds/benchmark.js
@@ -22,6 +22,21 @@ var util = require('../util'),
this.module = module;
this.debug = (options.parsed.loglevel == 'debug');
this.ci = options.parsed.ci || false;
+ this.tmproot = options.parsed.tmproot || false;
+ this.refs = [
+ // 'v3.5.0',
+ // 'v3.6.0',
+ // 'v3.7.0',
+ // 'v3.8.0',
+ // 'v3.9.0'
+ ];
+
+ if (options.parsed.v380) {
+ this.refs.push('v3.8.0')
+ }
+ if (options.parsed.v390) {
+ this.refs.push('v3.9.0')
+ }
mod = util.findModule(true);
@@ -74,6 +89,7 @@ var util = require('../util'),
_executeTest: function (testpath, next) {
var self = this,
yuiRoot = this.yuiRoot,
+ refs = this.refs,
componentRoot = this.componentRoot,
yogiRoot = path.join(__dirname, '../../'),
stdout = '',
@@ -82,13 +98,6 @@ var util = require('../util'),
child,
port = 3000,
averages = {},
- refs = [
- // 'v3.5.0',
- // 'v3.6.0',
- // 'v3.7.0',
- // 'v3.8.0',
- // 'v3.9.0'
- ],
argsObj = {
yuipath: yuiRoot,
iterations: 1,
@@ -100,6 +109,10 @@ var util = require('../util'),
output = '',
argsArr = [];
+ if (this.tmproot) {
+ argsObj['tmproot'] = this.tmproot;
+ }
+
log.info('Executing 1 test against ' + (refs.length + 1) + ' refs with ' + argsObj.iterations + ' iterations each. Run count is ' + argsObj.iterations * refs.length + '.')
for (key in argsObj) {
Please sign in to comment.
Something went wrong with that request. Please try again.