This function (not tested) produces render time in MICROseconds:
my_benchmark() ->
%% Define template vars (or [])
RenderVars = [{a, 123}, {asd, "asdsad"}...],
{TimeMcs, _RenderResult} = timer:tc(fun() ->
myproj_view_main_index_html:render(RenderVars)
end),
TimeMcs.
You also can type function body in chicagoboss console.
В Thu, 7 Feb 2013 03:10:46 -0800 (PST)
Вячеслав Козлов <
kozl...@gmail.com> пишет: