build: restore functionality of the micro benchmarks `profile_all.js` script (#33494)
The 4b81bb5c97
patch seemingly broke the
`profile_all.js` file due to the file renaming. This patch restores the
functionality of said script.
PR Close #33494
This commit is contained in:
parent
09536423e8
commit
f02213a661
|
@ -30,7 +30,7 @@ const profileTests =
|
||||||
// build tests
|
// build tests
|
||||||
shell.exec(
|
shell.exec(
|
||||||
`yarn bazel build --define=compile=aot ` +
|
`yarn bazel build --define=compile=aot ` +
|
||||||
profileTests.map((name) => `//packages/core/test/render3/perf:${name}.min_debug.es2015.js`)
|
profileTests.map((name) => `//packages/core/test/render3/perf:${name}_lib.min_debug.es2015.js`)
|
||||||
.join(' '));
|
.join(' '));
|
||||||
|
|
||||||
// profile tests
|
// profile tests
|
||||||
|
@ -61,7 +61,7 @@ profileTests.forEach((name) => {
|
||||||
// tslint:disable-next-line:no-console
|
// tslint:disable-next-line:no-console
|
||||||
console.log('----------------', name, '----------------');
|
console.log('----------------', name, '----------------');
|
||||||
const log =
|
const log =
|
||||||
shell.exec(`node dist/bin/packages/core/test/render3/perf/${name}.min_debug.es2015.js`);
|
shell.exec(`node dist/bin/packages/core/test/render3/perf/${name}_lib.min_debug.es2015.js`);
|
||||||
if (log.code != 0) throw new Error(log);
|
if (log.code != 0) throw new Error(log);
|
||||||
const matches = log.stdout.match(/: ([\d\.]+) (.s)/);
|
const matches = log.stdout.match(/: ([\d\.]+) (.s)/);
|
||||||
const runTime = times[name] || (times[name] = {name: name});
|
const runTime = times[name] || (times[name] = {name: name});
|
||||||
|
|
Loading…
Reference in New Issue