feat(benchpress): show more metrics and make the run mode configurable

Shows the metrics:
script, render, gcAmount, gcAmountInScript, gcTime

Run modes:
- detect: auto detect whether to force gc
- forceGc: forces a gc before every run and ignores no runs
- noGcInScript: ignore runs that have gc while a script was executing
- plain: does not force gc nor ignore runs

Closes #368
This commit is contained in:
Tobias Bosch
2015-01-07 14:35:42 -08:00
parent 82b1601a31
commit 77aa3ed61b
11 changed files with 138 additions and 115 deletions

View File

@ -11,7 +11,13 @@ var config = exports.config = {
sampleSize: 10,
targetCoefficientOfVariation: 4,
timeout: 20000,
metrics: ['script', 'render']
metrics: ['script', 'render', 'gcAmount', 'gcAmountInScript', 'gcTime'],
// run mode of the benchmark:
// - detect: auto detect whether to force gc
// - forceGc: forces a gc before every run and ignores no runs
// - noGcInScript: ignore runs that have gc while a script was executing
// - plain: does not force nor ignore runs
mode: 'detect'
}
},