jenkins-bot has submitted this change and it was merged.
Change subject: Report parserTests execution time.
......................................................................
Report parserTests execution time.
This will make debugging performance issues like those in bug 67313
slightly easier, since we can just ask the reporter to copy/paste the
entire parser tests output to get both the exact node version (which
is already there) and a baseline for platform performance (which this
patch adds).
Change-Id: I55de17ae5dc892d867f9a46610f7309b43eb0a19
---
M tests/parserTests.js
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/parserTests.js b/tests/parserTests.js
index d115301..59d356b 100755
--- a/tests/parserTests.js
+++ b/tests/parserTests.js
@@ -1433,6 +1433,9 @@
console.log(
"==========================================================");
console.log( "SUMMARY: ");
+ if (console.time && console.timeEnd) {
+ console.timeEnd('Execution time');
+ }
if( failTotalTests !== 0 ) {
for ( i = 0; i < modes.length; i++ ) {
@@ -1669,6 +1672,9 @@
this.parserPipeline =
this.env.pipelineFactory.getPipeline('text/x-mediawiki/full');
}
+ if (console.time && console.timeEnd) {
+ console.time('Execution time');
+ }
options.reportStart();
this.env.pageCache = this.articles;
this.comments = [];
--
To view, visit https://gerrit.wikimedia.org/r/143083
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I55de17ae5dc892d867f9a46610f7309b43eb0a19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
Gerrit-Reviewer: Arlolra <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits