User:Johnuniq/Small using loadData

From Wikipedia

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:Convert which invokes Module:Convert in a way that means it will use mw.loadData to read Module:Convertdata (it will not use require).

Previewing this page before saving showed the following in the HTML source:

NewPP limit report
Preprocessor visited node count: 41/1000000
Preprocessor generated node count: 199/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.027s
Lua memory usage: 1.54 MB

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

Small test[edit]

Following are 2 calls to {{convert}} from w:Template:Convert/testcases.

Wikitext Result
{{convert|1|ft/s2|lk=on}} 1 foot per second squared (0.30 m/s2)
{{convert|1|m/s2|ft/s2|lk=on}} 1 metre per second squared (3.3 ft/s2)