mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
18 lines
369 B
Go
18 lines
369 B
Go
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",
|
|
})
|
|
}
|
|
}
|