diff options
Diffstat (limited to 'admin_test.go')
-rw-r--r-- | admin_test.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/admin_test.go b/admin_test.go new file mode 100644 index 0000000..fe2932c --- /dev/null +++ b/admin_test.go @@ -0,0 +1,30 @@ +package caddy2 + +import ( + "strings" + "testing" +) + +func BenchmarkLoad(b *testing.B) { + for i := 0; i < b.N; i++ { + r := strings.NewReader(`{ + "testval": "Yippee!", + "modules": { + "http": { + "servers": { + "myserver": { + "listen": ["tcp/localhost:8080-8084"], + "read_timeout": "30s" + }, + "yourserver": { + "listen": ["127.0.0.1:5000"], + "read_header_timeout": "15s" + } + } + } + } + } + `) + Load(r) + } +} |