feat(bench press): add microIterations option
This commit is contained in:
@ -23,7 +23,14 @@ function runBenchmark(config) {
|
||||
return getScaleFactor(browser.params.benchmark.scaling).then(function(scaleFactor) {
|
||||
var description = {};
|
||||
var urlParams = [];
|
||||
config.params.forEach(function(param) {
|
||||
var microIterations = config.microIterations || 0;
|
||||
var params = config.params || [];
|
||||
if (microIterations) {
|
||||
params = params.concat([{
|
||||
name: 'iterations', value: microIterations, scale: 'linear'
|
||||
}]);
|
||||
}
|
||||
params.forEach(function(param) {
|
||||
var name = param.name;
|
||||
var value = applyScaleFactor(param.value, scaleFactor, param.scale);
|
||||
urlParams.push(name + '=' + value);
|
||||
@ -35,6 +42,7 @@ function runBenchmark(config) {
|
||||
id: config.id,
|
||||
execute: config.work,
|
||||
prepare: config.prepare,
|
||||
microIterations: microIterations,
|
||||
bindings: [
|
||||
benchpress.bind(benchpress.Options.SAMPLE_DESCRIPTION).toValue(description)
|
||||
]
|
||||
|
Reference in New Issue
Block a user