User:Johnuniq/Small using require

Performance results

edit

Following is an investigation of how much Lua execution time is required to do a small 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: 45/1000000
Preprocessor generated node count: 205/1500000
Post-expand include size: 462/2048000 bytes
Template argument size: 0/2048000 bytes
Highest expansion depth: 2/40
Expensive parser function count: 0/500
Lua time usage: 0.019s
Lua memory usage: 2.03 MB

Johnuniq (talk) 07:54, 5 March 2013 (UTC)

Small test

edit

Following are 2 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)