Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Escape/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Speed== The following are benchmarks... when executing the following module function: <syntaxhighlight lang="lua"> function p.test_kill500(frame) local esc = require('Module:Escape') for k = 1, 500 do local v = esc:kill(p.test_string2(), 'test') end return os.clock(esc) end </syntaxhighlight> '''{{#invoke:Escape/testcases|test_kill500}}''' when repeating the following line 500 times in a template: {{code|<nowiki>{{#invoke:Escape|main|mode=kill|{{#invoke:Escape/testcases|test_string2}}|test}}</nowiki>}} '''0.767'''<!-- NewPP limit report Parsed by mw1144 CPU time usage: 1.082 seconds Real time usage: 1.109 seconds Preprocessor visited node count: 4001/1000000 Preprocessor generated node count: 0/1500000 Post‐expand include size: 33000/2097152 bytes Template argument size: 0/2097152 bytes Highest expansion depth: 3/40 Expensive parser function count: 0/500 Lua time usage: 0.767/10.000 seconds Lua memory usage: 1.5 MB/50 MB --> All times in seconds. The module time x500 was calculated when you loaded this doc page (normally between 0.02 and 0.07). The template time x500 was recorded on Jan 15, 2015.
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)