Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Quicktemplate is NOT the faster? #83

Open
frederikhors opened this issue Feb 11, 2021 · 1 comment
Open

Why Quicktemplate is NOT the faster? #83

frederikhors opened this issue Feb 11, 2021 · 1 comment

Comments

@frederikhors
Copy link

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

If yes, why Quicktemplate is NOT the faster?

@hugmouse
Copy link

hugmouse commented Mar 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants