User:Johnuniq/Moderate using require
Appearance
Performance results
[edit]- See User talk:Johnuniq for information.
Following is an investigation of how much Lua execution time is required to do a moderate number of conversions. This page, uses Template:Convertrequire which invokes Module:Convert in a way that means it will use require
to read Module:Convertdata (it will not use mw.loadData
).
Previewing this page before saving showed the following in the HTML source:
NewPP limit report Preprocessor visited node count: 153/1000000 Preprocessor generated node count: 725/1500000 Post-expand include size: 1850/2048000 bytes Template argument size: 0/2048000 bytes Highest expansion depth: 2/40 Expensive parser function count: 0/500 Lua time usage: 0.033s Lua memory usage: 2.97 MB
Johnuniq (talk) 07:42, 5 March 2013 (UTC)
Moderate test
[edit]Following are 10 calls to {{convertrequire}}
from w:Template:Convert/testcases.
Wikitext | Result |
---|---|
{{convertrequire|1|ft/s2|lk=on}} |
1 foot per second squared (0.30 m/s2) |
{{convertrequire|1|m/s2|ft/s2|lk=on}} |
1 metre per second squared (3.3 ft/s2) |
{{convertrequire|1|km/h/s|lk=on}} |
1 kilometre per hour per second (0.62 mph/s) |
{{convertrequire|1|m/s2|km/h/s|lk=on}} |
1 metre per second squared (3.6 km/(h·s)) |
{{convertrequire|1|km/hs|lk=on}} |
1 kilometre per hour per second (0.62 mph/s) |
{{convertrequire|1|m/s2|km/hs|lk=on}} |
1 metre per second squared (3.6 km/(h·s)) |
{{convertrequire|1|m/s2|lk=on}} |
1 metre per second squared (3.3 ft/s2) |
{{convertrequire|1|acre|lk=on}} |
1 acre (0.40 ha) |
{{convertrequire|1|m2|acre|lk=on}} |
1 square metre (0.00025 acres) |
{{convertrequire|1|m2|acre ha|lk=on}} |
1 square metre (0.00025 acres; 0.00010 ha) |