func New() *Benchmark {
	bA := &Benchmark{
		//200 requests per second. i.e. 200k per minute
		TotalRequests: 200,
		//1000 milliseconds. i.e. 1 second
		BenchDuration: 1000,
		//Stat would be printed after completing every 20 requests
		StatReqCount: 200 / 10,
		//By default, show progress is set to true
		ShowProgress: true,

		//cumulative time of requests is set to 0 initially
		successRequestTimer: 0,
		errorRequestTimer:   0,

		// Setting the highest value so that the first request would replace this
		minReqTime:        1 << 63,
		successMinReqTime: 1 << 63,
		errorMinReqTime:   1 << 63,

		errors: make(map[string]errorStat),

		mutex: &sync.Mutex{},
	}

	return bA
}
//New returns a new Benchmark pointer with the default values set
New returns a new Benchmark pointer with the default values set
// New returns a new Benchmark pointer with the default values set
func New() *Benchmark {
	bA := &Benchmark{
		TotalRequests: 200,
		BenchDuration: 1000,
		StatReqCount: 200 / 10,
		ShowProgress: true,
		successRequestTimer: 0,
		errorRequestTimer:   0,
		minReqTime:        1 << 63,
		successMinReqTime: 1 << 63,
		errorMinReqTime:   1 << 63,
		errors: make(map[string]errorStat),
		mutex: &sync.Mutex{},
	}
	return bA
}
func New ( ) * Benchmark { bA := & Benchmark { TotalRequests : 200 , BenchDuration : 1000 , StatReqCount : 200 / 10 , ShowProgress : true , successRequestTimer : 0 , errorRequestTimer : 0 , minReqTime : 1 << 63 , successMinReqTime : 1 << 63 , errorMinReqTime : 1 << 63 , errors : make ( map [ string ] errorStat ) , mutex : & sync . Mutex { } , } return bA }
New returns a new Benchmark pointer with the default values set
New returns a new Benchmark pointer with the default values set
//200 requests per second. i.e. 200k per minute //1000 milliseconds. i.e. 1 second //Stat would be printed after completing every 20 requests //By default, show progress is set to true //cumulative time of requests is set to 0 initially // Setting the highest value so that the first request would replace this