Jump to content

User talk:MJL/sandboxP/1

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Heading text

[edit]

I have been trying to compare loading times of portals. It's pretty stark.

Here is an exceptional case from Portal:Nazism. Here is a copy of this comment (by me).

Loading times.

[edit]

I think this page is really a mess and beyond saving. I don't know why I have even tried at this point. Here's the current WP:TLIMIT:

Parser profiling data (help) :
CPU time usage 4.576 seconds
Real time usage 5.046 seconds
Preprocessor visited node count 2,006/1,000,000
Preprocessor generated node count 0/1,500,000
Post-expand include size 171,675/2,097,152 bytes
Template argument size 7,402/2,097,152 bytes
Highest expansion depth 17/40
Expensive parser function count 1/500
Unstrip recursion depth 0/20
Unstrip post-expand size 46,186/5,000,000 bytes
Number of Wikibase entities loaded 0/400
Lua time usage 4.174/10.000 seconds
Lua memory usage 22.44 MB/50 MB

I am pretty much done. This is pretty much absurd for a portal I doubt people really asked for. I'll nominate this for deletion within the next month if no one else cleans things up. –MJLTalk 19:56, 13 April 2019 (UTC)

The Code

[edit]

The above referenced portal contained the following code:

Code
<!--{{Portal maintenance status |date=April 2019 |subpages=none |broken= |note= }}--> {{Portal maintenance status|date=December 2018}} {{Portal description}} {{Portals browsebar}} __NOTOC__ __NOEDITSECTION__ <div style="clear:both; width:100%"> {{Box-header colour|<big>Nazism</big>| colour=#964B00 }}<!-- {{Portal image banner|}}--> {{Transclude lead excerpt| {{#titleparts:Nazism}} | paragraphs=1-2 | files=1}} {{Box-footer|[[Nazism|Read more...]]}} {{Purge link portals}} </div> <!-- End of full width section --> <div class="portal-column-left"> <!-- Switch to one column on narrow screens --> {{Box-header colour|Selected article| colour=#964B00 }} {{Transclude random subpage|max=4| subpage=Selected article|seed=7}} {{Box-footer}} {{Box-header colour|Selected biography| colour=#964B00 }} {{Transclude random subpage|max=2| subpage=Selected biography|seed=3}} {{Box-footer}} {{Box-header colour|Selected quote| colour=#964B00 }} {{Transclude random subpage|max=9| subpage=Selected quote|seed=7}} {{Box-footer}} <!-- --><!--CONDITIONAL DID YOU KNOW? SECTION - ONLY SHOWS UP WHEN THERE ARE ENTRIES TO DISPLAY--> {{Transclude selected recent additions | Heinrich Himmler | months=36 | header={{Box-header colour|Did you know... | colour=#964B00 }}|max=6}} <!--END OF DID YOU KNOW? SECTION--><!-- --> {{Box-header colour|Nazism in the news| colour=#964B00 }} {{Transclude selected current events|Nazism|Neonazism|National Socialism|max=4}} {{Box-footer}} </div> <!--{{Box-header colour|Other selected images| colour=#964B00 }} {{Transclude files as random slideshow | Adolf Hitler | Erwin Rommel | }} {{Box-footer}} --> <div class="portal-column-right"> <!-- Switch to one column on narrow screens --> {{Box-header colour|Selected images| colour=#964B00 }} {{Transclude files as random slideshow | Nazism }} {{Box-footer}} {{Box-header colour|Selected battle| colour=#964B00 }} {{Transclude random subpage|max=1| subpage=Selected battle|seed=7}} {{Box-footer}} {{Box-header colour|Selected battleship| colour=#964B00 }} {{Transclude random subpage|max=1| subpage=Selected battleship|seed=13}} {{Box-footer}} {{Box-header colour|Categories| colour=#964B00 }} {{/Categories}} {{Box-footer}} </div> <div style="clear:both; width:100%"> {{Box-header colour|Related portals| colour=#964B00 }} {{Related portals2|Fascism|History|Military History|Germany|Austria|World War II|War}} {{Box-footer}} {{Box-header colour|WikiProjects| colour=#964B00 }} {{/Projects}} {{Box-footer}} {{Box-header colour|Associated Wikimedia| colour=#964B00 }} {{Wikimedia for portals | species=no | voy=no}} {{Box-footer}} </div> <!-- End of full width section --> {{Nazism}} {{Neo-Nazism}} {{portals}} {{purge page}} __NOTOC__ __NOEDITSECTION__ [[Category:History portals]] [[Category:Nazism portal]] [[Category:Redirect targets of redirected portals with existing subpages]]

Now a Comparison

[edit]
  Pre-TTH (1) Pre-TTH (2) Post-TTH] (A) Post-TTH] (B) Main article This page
CPU time usage 0.364 seconds 0.276 seconds 0.620 seconds 0.568 seconds 0.676 seconds 0.040 seconds
Real time usage 0.533 seconds 0.450 seconds 0.849 seconds 0.790 seconds 0.872 seconds 0.055 seconds
Preprocessor visited node count 1,021/1,000,000 1,021/1,000,000 1,292/1,000,000 1,302/1,000,000 1,908/1,000,000 189/1,000,000
Preprocessor generated node count 0/1,500,000 0/1,500,000 0/1,500,000 0/1,500,000 0/1,500,000 0/1,500,000
Post-expand include size 79,026/2,097,152 bytes 81,952/2,097,152 bytes 74,307/2,097,152 bytes 73,795/2,097,152 bytes 92,344/2,097,152 bytes 2,357/2,097,152 bytes
Template argument size 5,550/2,097,152 bytes 5,552/2,097,152 bytes 6,335/2,097,152 bytes 6,351/2,097,152 bytes 1,252/2,097,152 bytes 633/2,097,152 bytes
Highest expansion depth 7/40 7/40 17/40 17/40 12/40 6/40
Expensive parser function count 0/500 0/500 2/500 2/500 5/500 0/500
Unstrip recursion depth 0/20 0/20 0/20 0/20 1/20 0/20
Unstrip post-expand size 0/5,000,000 bytes 0/5,000,000 bytes 4,846/5,000,000 bytes 4,846/5,000,000 bytes 52,577/5,000,000 bytes 3,718/5,000,000 bytes
Number of Wikibase entities loaded 0/400 0/400 0/400 0/400 1/400 0/400
Lua time usage 0.097/10.000 seconds 0.074/10.000 seconds 0.332/10.000 seconds 0.319/10.000 seconds 0.412/10.000 seconds  
Lua memory usage 2.45 MB/50 MB 2.45 MB/50 MB 4.11 MB/50 MB 4.11 MB/50 MB 11.21 MB/50 MB  

Methodology: One preview each was made for pre-TTH, post-TTH, and the main article. Then, some time later and at two different times, one more preview was made for pre-TTH and post-TTH. The last column reflects the exact version of this page as of my signature. It would be included in a subsequent edit. –MJLTalk 00:44, 20 April 2019 (UTC)[reply]