quicktemplate
quicktemplate copied to clipboard
Why Quicktemplate is NOT the faster?
Is this bench comparison still valid? https://github.com/SlinSo/goTemplateBenchmark
If yes, why Quicktemplate is NOT the faster?
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