quicktemplate icon indicating copy to clipboard operation
quicktemplate copied to clipboard

Why Quicktemplate is NOT the faster?

Open frederikhors opened this issue 4 years ago • 1 comments

Is this bench comparison still valid? https://github.com/SlinSo/goTemplateBenchmark

If yes, why Quicktemplate is NOT the faster?

frederikhors avatar Feb 11 '21 13:02 frederikhors

You can check why it is slower in certain cases by using profilers.

I think it is slower than other templating engines sometimes because it has more complex logic.

And besides, you need to choose a template engine for the task, rather than looking for "the fastest" one and yet this package is faster than STD's html/template.

Name Runs µs/op B/op allocations/op
Golang 466,560 7.928 897 35
GolangText 1,460,233 2.582 128 7
Quicktemplate 13,077,282 0.246 0 0
ComplexQuicktemplate 2,812,012 1.258 0 0
  • Source: https://github.com/SlinSo/goTemplateBenchmark

hugmouse avatar Mar 06 '21 09:03 hugmouse