tlienart / FranklinParser.jl

Franklin's Markdown processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mystery millisecond loss

tlienart opened this issue · comments

Putting @elapsed everywhere in partition (see branch perf2); and doing

ct = read("src/_precompile/expages/real3.md", String)

@time FranklinParser.md_partition(ct);

a few times, there's a systematic gap of between 0.5 and 1 ms between the @time and the summed elapsed time:

("tok", dt) = ("tok", 0.000824708)
("preblock", dt) = ("preblock", 3.1208e-5)
("block", dt) = ("block", 0.000349084)
("rest", dt) = ("rest", 0.001482167)
("pproc", dt) = ("pproc", 2.5417e-5)
t = 0.0027125839999999997
  0.003521 seconds (3.92 k allocations: 803.305 KiB)

(even consistent with btimes), what causes this??

caused by @show