Add to SlinSlo go template benchmark suite
Checklist
- [x] I have searched the issue list
Detailed Description
- Add benchmark to the list of other template benchmarks.
- Provide the bechnhmark results in readme until this is re-run by the author of original bench suite.
This issue can be addressed by creating a PR against SlinSo/goTemplateBenchmark:
- Add this package to
glide.yaml - Create a
liquidfolder; - Translate at least the
simple.*template from one of the other directories toliquid/simple.liquid. - Adding a function
templates_test.goandtemplates_complex_test.go
This (osteele/liquid) package doesn't have a “precompile to go” option. The closest match is to precompile the template, and then run the compiled template. That performance is barely different from applying an uncompiled template — because most of the render time is in emulating Ruby semantics — so it probably doesn't make sense to add timings to the “precompilation to Go code” sections of SlinSo/goTemplateBenchmark's README.
I've created a related issue #32, to add benchmarks to this (osteele/liquid) repository. This can be done independently of creating a PR to add timings to SlinSo/goTemplateBenchmark, except that the work of translating the test files from that repo into Liquid could be used for both this issue and that one.