Ejemplo n.º 1
0
func BenchmarkContact(b *testing.B) {
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/"+randContact(), nil, GetContact)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact", nil, GetAllContacts)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/types/"+randType(), nil, GetContactType)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/types", nil, GetAllContactTypes)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/types/receivers/"+randType(), nil, GetReceiversByContactType)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/reciever/"+randReceiver(), nil, GetContactReceiver)
	testThatHttp.RequestBenchmark(b.N, "GET", "/contact/reciever", nil, GetAllContactReceivers)
}
Ejemplo n.º 2
0
func BenchmarkBlog(b *testing.B) {
	testThatHttp.RequestBenchmark(b.N, "GET", "/blog/1", nil, GetBlog)
	testThatHttp.RequestBenchmark(b.N, "GET", "/blog", nil, GetAll)
	testThatHttp.RequestBenchmark(b.N, "GET", "/blog/categories", nil, GetAllCategories)
	testThatHttp.RequestBenchmark(b.N, "GET", "/blog/category/1", nil, GetBlogCategory)
}
Ejemplo n.º 3
0
func BenchmarkBrands(b *testing.B) {
	testThatHttp.RequestBenchmark(b.N, "GET", "/brand/1", nil, GetBrand)
	testThatHttp.RequestBenchmark(b.N, "GET", "/brand", nil, GetAllBrands)
}
Ejemplo n.º 4
0
func BenchmarkApplicationGuide(b *testing.B) {
	testThatHttp.RequestBenchmark(b.N, "GET", "/applicationGuide/1", nil, GetApplicationGuide)
	testThatHttp.RequestBenchmark(b.N, "GET", "/applicationGuide/1", nil, GetApplicationGuidesByWebsite)
}