diff options
Diffstat (limited to 'modules/caddyhttp/encode/encode_test.go')
-rw-r--r-- | modules/caddyhttp/encode/encode_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/caddyhttp/encode/encode_test.go b/modules/caddyhttp/encode/encode_test.go new file mode 100644 index 0000000..79eae3c --- /dev/null +++ b/modules/caddyhttp/encode/encode_test.go @@ -0,0 +1,12 @@ +package encode + +import ( + "testing" +) + +func BenchmarkOpenResponseWriter(b *testing.B) { + enc := new(Encode) + for n := 0; n < b.N; n++ { + enc.openResponseWriter("test", nil) + } +} |