tmplhtml

package
v0.0.0-...-b91b1e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

README

Using template to update one value

Using a template when an elementary Fprint() suffices is costly.

src>go test -bench=. ./tmplhtml

Results

go version go1.12.5 windows/amd64
pkg: github.com/iWdGo/GoCompilerEfficiency/src/tmplhtml
BenchmarkHTMLOutputTmpl-4         500000              3717 ns/op
BenchmarkHTMLOutputBuffer-4      5000000               354 ns/op
PASS

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL