fix serialization, added benchmark tests, updated next release docs

This commit is contained in:
yusing
2025-01-26 15:08:10 +08:00
parent 83ea19dd92
commit bbc10cb105
7 changed files with 120 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
package docker_test
import (
"testing"
"github.com/yusing/go-proxy/internal/docker"
)
func BenchmarkParseLabels(b *testing.B) {
for range b.N {
_, _ = docker.ParseLabels(map[string]string{
"proxy.a.host": "localhost",
"proxy.a.port": "4444",
"proxy.a.scheme": "http",
"proxy.a.middlewares.request.hide_headers": "X-Header1,X-Header2",
})
}
}