hugo/helpers
bep 43e48a8989 Add benchmark test for StripHTML
go test -test.run=NONE -bench=".*" -test.benchmem=true ./helpers

Old vs new impl (string.Replace vs string.Replacer):

benchmark              old ns/op     new ns/op     delta
BenchmarkStripHTML     10210         6572          -35.63%

benchmark              old allocs     new allocs     delta
BenchmarkStripHTML     6              5              -16.67%

benchmark              old bytes     new bytes     delta
BenchmarkStripHTML     1456          848           -41.76%
2015-02-06 10:00:42 +01:00
..
content.go Fix Truncate 2015-02-05 14:04:48 -07:00
content_test.go Add benchmark test for StripHTML 2015-02-06 10:00:42 +01:00
general.go Add writable context to Node 2015-01-31 22:01:30 +01:00
general_test.go Add writable context to Node 2015-01-31 22:01:30 +01:00
path.go Fix for issue 839 and 490 on Windows 2015-01-30 14:18:17 +01:00
path_test.go Use runtime.GOOS to identify Windows specific path tests 2015-01-27 23:01:32 +01:00
pygments.go Wrap comments helpers package to fit 80-column width 2014-12-26 08:07:03 -07:00
url.go ignore root path, no need strip traling slash 2015-01-28 09:43:43 +01:00
url_test.go ignore root path, no need strip traling slash 2015-01-28 09:43:43 +01:00