refactor(benchmarks): add cloud reporter, add params
- adds console and cloud reporter (via Google BigQuery). - makes parameters of tests explicit and modifiable. - removes `detect` and `ignoreGc` mode from benchpress as these can result in unstable numbers.
This commit is contained in:
16
tools/build/snippets/runtime_paths.js
Normal file
16
tools/build/snippets/runtime_paths.js
Normal file
@ -0,0 +1,16 @@
|
||||
System.paths = {
|
||||
'core/*': '/core/lib/*.js',
|
||||
'change_detection/*': '/change_detection/lib/*.js',
|
||||
'facade/*': '/facade/lib/*.js',
|
||||
'di/*': '/di/lib/*.js',
|
||||
'directives/*': '/directives/lib/*.js',
|
||||
'rtts_assert/*': '/rtts_assert/lib/*.js',
|
||||
'test_lib/*': '/test_lib/lib/*.js',
|
||||
'reflection/*': '/reflection/lib/*.js',
|
||||
'benchpress/*': '/benchpress/lib/*.js',
|
||||
'examples/*': '/examples/web/*.js',
|
||||
'e2e_test_lib/*': '/e2e_test_lib/lib/*.js',
|
||||
'benchmarks/*': '/benchmarks/web/*.js',
|
||||
'benchmarks_external/*': '/benchmarks_external/web/*.js',
|
||||
};
|
||||
register(System);
|
14
tools/build/snippets/url_params_to_form.js
Normal file
14
tools/build/snippets/url_params_to_form.js
Normal file
@ -0,0 +1,14 @@
|
||||
// helper script that will read out the url parameters
|
||||
// and store them in appropriate form fields on the page
|
||||
(function() {
|
||||
var regex = /(\w+)=(\w+)/g;
|
||||
var search = decodeURIComponent(location.search);
|
||||
while (match = regex.exec(search)) {
|
||||
var name = match[1];
|
||||
var value = match[2];
|
||||
var els = document.querySelectorAll('input[name="'+name+'"]');
|
||||
for (var i=0; i<els.length; i++) {
|
||||
els[i].value = value;
|
||||
}
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user